home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / what's new / technical documentation / macintosh technotes and q&as / technotes / tn / desktopprinting.h.sit.hqx / DesktopPrinting.h
MacBinary  |  1998-07-21  |  13.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 21 11:11:33 1998, modified Tue Jul 21 11:11:33 1998, creator 'CWIE', type ASCII, 13273 bytes "DesktopPrinting.h" , at 0x3459 456 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 44 65 73 6b 74 6f | 70 50 72 69 6e 74 69 6e |..Deskto|pPrintin|
|00000010| 67 2e 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |g.h.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 33 d9 00 | 00 01 c8 b1 da 60 25 b1 |.....3..|.....`%.|
|00000060| da 60 25 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.`%.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9a 19 00 00 |........|........|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 44 65 73 6b 74 |/*..File|:..Deskt|
|00000090| 6f 70 50 72 69 6e 74 69 | 6e 67 2e 68 0d 0d 09 43 |opPrinti|ng.h...C|
|000000a0| 6f 6e 74 61 69 6e 73 3a | 09 64 65 66 69 6e 69 74 |ontains:|.definit|
|000000b0| 69 6f 6e 20 6f 66 20 64 | 61 74 61 20 61 6e 64 20 |ion of d|ata and |
|000000c0| 73 74 72 75 63 74 75 72 | 65 73 20 66 6f 72 20 61 |structur|es for a|
|000000d0| 20 74 68 69 72 64 2d 70 | 61 72 74 79 20 70 72 69 | third-p|arty pri|
|000000e0| 6e 74 20 64 72 69 76 65 | 72 0d 09 09 09 09 74 6f |nt drive|r.....to|
|000000f0| 20 77 6f 72 6b 20 77 69 | 74 68 20 63 6c 61 73 73 | work wi|th class|
|00000100| 69 63 20 50 72 69 6e 74 | 4d 6f 6e 69 74 6f 72 20 |ic Print|Monitor |
|00000110| 61 6e 64 20 44 65 73 6b | 74 6f 70 20 50 72 69 6e |and Desk|top Prin|
|00000120| 74 4d 6f 6e 69 74 6f 72 | 0d 09 20 0d 20 09 56 65 |tMonitor|.. . .Ve|
|00000130| 72 73 69 6f 6e 3a 09 4d | 61 63 20 4f 53 20 38 2e |rsion:.M|ac OS 8.|
|00000140| 35 0d 20 0d 20 09 44 52 | 49 3a 09 09 48 75 65 69 |5. . .DR|I:..Huei|
|00000150| 69 20 48 6f 70 77 6f 6f | 64 0d 20 0d 20 09 43 6f |i Hopwoo|d. . .Co|
|00000160| 70 79 72 69 67 68 74 3a | 09 a9 20 31 39 39 38 20 |pyright:|.. 1998 |
|00000170| 62 79 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |by Apple| Compute|
|00000180| 72 2c 20 49 6e 63 2e 2c | 20 61 6c 6c 20 72 69 67 |r, Inc.,| all rig|
|00000190| 68 74 73 20 72 65 73 65 | 72 76 65 64 0d 2a 2f 0d |hts rese|rved.*/.|
|000001a0| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 44 65 73 6b 74 |.#ifndef| __Deskt|
|000001b0| 6f 70 50 72 69 6e 74 69 | 6e 67 5f 5f 0d 23 64 65 |opPrinti|ng__.#de|
|000001c0| 66 69 6e 65 20 5f 5f 44 | 65 73 6b 74 6f 70 50 72 |fine __D|esktopPr|
|000001d0| 69 6e 74 69 6e 67 5f 5f | 0d 0d 23 69 66 20 47 45 |inting__|..#if GE|
|000001e0| 4e 45 52 41 54 49 4e 47 | 50 4f 57 45 52 50 43 0d |NERATING|POWERPC.|
|000001f0| 23 70 72 61 67 6d 61 20 | 6f 70 74 69 6f 6e 73 20 |#pragma |options |
|00000200| 61 6c 69 67 6e 3d 6d 61 | 63 36 38 6b 0d 23 65 6e |align=ma|c68k.#en|
|00000210| 64 69 66 0d 0d 2f 2f 0d | 2f 2f 20 50 72 47 65 6e |dif..//.|// PrGen|
|00000220| 65 72 61 6c 20 6f 70 63 | 6f 64 65 73 20 66 6f 72 |eral opc|odes for|
|00000230| 20 64 65 73 6b 74 6f 70 | 20 70 72 69 6e 74 6e 67 | desktop| printng|
|00000240| 0d 2f 2f 0d 0d 2f 2f 20 | 44 54 50 20 70 72 69 6e |.//..// |DTP prin|
|00000250| 74 65 72 20 74 79 70 65 | 73 20 28 61 64 64 72 65 |ter type|s (addre|
|00000260| 73 73 20 74 79 70 65 73 | 29 0d 65 6e 75 6d 20 0d |ss types|).enum .|
|00000270| 7b 0d 09 6b 44 54 50 55 | 6e 6b 6e 6f 77 6e 50 72 |{..kDTPU|nknownPr|
|00000280| 69 6e 74 65 72 54 79 70 | 65 09 09 3d 20 2d 31 2c |interTyp|e..= -1,|
|00000290| 09 2f 2f 20 75 6e 6b 6e | 6f 77 6e 20 61 64 64 72 |.// unkn|own addr|
|000002a0| 65 73 73 20 74 79 70 65 | 0d 09 6b 44 54 50 53 65 |ess type|..kDTPSe|
|000002b0| 72 69 61 6c 50 72 69 6e | 74 65 72 54 79 70 65 09 |rialPrin|terType.|
|000002c0| 09 3d 20 30 2c 09 2f 2f | 20 73 65 72 69 61 6c 20 |.= 0,.//| serial |
|000002d0| 70 72 69 6e 74 65 72 0d | 09 6b 44 54 50 41 70 70 |printer.|.kDTPApp|
|000002e0| 6c 65 54 61 6c 6b 50 72 | 69 6e 74 65 72 54 79 70 |leTalkPr|interTyp|
|000002f0| 65 09 3d 20 31 2c 09 2f | 2f 20 41 70 70 6c 65 54 |e.= 1,./|/ AppleT|
|00000300| 61 6c 6b 20 70 72 69 6e | 74 65 72 0d 09 6b 44 54 |alk prin|ter..kDT|
|00000310| 50 54 43 50 49 50 50 72 | 69 6e 74 65 72 54 79 70 |PTCPIPPr|interTyp|
|00000320| 65 09 09 3d 20 32 2c 09 | 2f 2f 20 54 43 50 2f 49 |e..= 2,.|// TCP/I|
|00000330| 50 20 70 72 69 6e 74 65 | 72 0d 09 6b 44 54 50 53 |P printe|r..kDTPS|
|00000340| 43 53 49 50 72 69 6e 74 | 65 72 54 79 70 65 09 09 |CSIPrint|erType..|
|00000350| 09 3d 20 33 2c 09 2f 2f | 20 53 43 53 49 20 70 72 |.= 3,.//| SCSI pr|
|00000360| 69 6e 74 65 72 0d 09 6b | 44 54 50 55 53 42 50 72 |inter..k|DTPUSBPr|
|00000370| 69 6e 74 65 72 54 79 70 | 65 09 09 09 3d 20 34 09 |interTyp|e...= 4.|
|00000380| 09 2f 2f 20 55 53 42 20 | 70 72 69 6e 74 65 72 0d |.// USB |printer.|
|00000390| 7d 3b 0d 0d 2f 2f 20 73 | 65 72 69 61 6c 20 70 6f |};..// s|erial po|
|000003a0| 72 74 73 0d 65 6e 75 6d | 0d 7b 0d 09 6b 44 54 50 |rts.enum|.{..kDTP|
|000003b0| 55 6e 6b 6e 6f 77 6e 50 | 6f 72 74 09 3d 20 2d 31 |UnknownP|ort.= -1|
|000003c0| 2c 09 09 09 09 2f 2f 20 | 66 6f 72 20 64 72 69 76 |,....// |for driv|
|000003d0| 65 72 73 20 74 68 61 74 | 20 73 75 70 70 6f 72 74 |ers that| support|
|000003e0| 20 73 65 72 69 61 6c 20 | 63 6f 6e 6e 65 63 74 69 | serial |connecti|
|000003f0| 6f 6e 20 62 79 20 74 68 | 65 20 0d 09 09 09 09 09 |on by th|e ......|
|00000400| 09 09 09 09 09 2f 2f 20 | 43 6f 6d 6d 20 54 6f 6f |.....// |Comm Too|
|00000410| 6c 62 6f 78 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |lbox oth|er than |
|00000420| 6d 6f 64 65 6d 20 61 6e | 64 20 70 72 69 6e 74 65 |modem an|d printe|
|00000430| 72 20 70 6f 72 74 0d 09 | 6b 44 54 50 50 72 69 6e |r port..|kDTPPrin|
|00000440| 74 65 72 50 6f 72 74 09 | 3d 20 30 2c 09 09 09 09 |terPort.|= 0,....|
|00000450| 2f 2f 20 70 72 69 6e 74 | 65 72 20 70 6f 72 74 0d |// print|er port.|
|00000460| 09 6b 44 54 50 4d 6f 64 | 65 6d 50 6f 72 74 09 3d |.kDTPMod|emPort.=|
|00000470| 20 31 09 09 09 09 09 2f | 2f 20 6d 6f 64 65 6d 20 | 1...../|/ modem |
|00000480| 70 6f 72 74 0d 7d 3b 0d | 0d 2f 2f 20 50 72 47 65 |port.};.|.// PrGe|
|00000490| 6e 65 72 61 6c 20 6f 70 | 63 6f 64 65 73 0d 65 6e |neral op|codes.en|
|000004a0| 75 6d 0d 7b 0d 09 6b 44 | 54 50 47 65 74 50 72 69 |um.{..kD|TPGetPri|
|000004b0| 6e 74 65 72 49 6e 66 6f | 20 3d 20 32 33 2c 0d 09 |nterInfo| = 23,..|
|000004c0| 6b 44 54 50 49 73 53 61 | 6d 65 50 72 69 6e 74 65 |kDTPIsSa|mePrinte|
|000004d0| 72 49 6e 66 6f 20 3d 20 | 32 34 2c 0d 09 6b 44 54 |rInfo = |24,..kDT|
|000004e0| 50 53 65 74 44 65 66 61 | 75 6c 74 50 72 69 6e 74 |PSetDefa|ultPrint|
|000004f0| 65 72 49 6e 66 6f 20 3d | 20 32 35 0d 7d 3b 0d 0d |erInfo =| 25.};..|
|00000500| 2f 2f 20 73 65 72 69 61 | 6c 20 70 72 69 6e 74 65 |// seria|l printe|
|00000510| 72 20 61 64 64 72 65 73 | 73 0d 74 79 70 65 64 65 |r addres|s.typede|
|00000520| 66 20 73 74 72 75 63 74 | 0d 7b 0d 09 73 68 6f 72 |f struct|.{..shor|
|00000530| 74 09 70 6f 72 74 3b 09 | 09 2f 2f 20 6b 44 54 50 |t.port;.|.// kDTP|
|00000540| 50 72 69 6e 74 65 72 50 | 6f 72 74 2c 20 6b 44 54 |PrinterP|ort, kDT|
|00000550| 50 4d 6f 64 65 6d 50 6f | 72 74 20 6f 72 20 6b 44 |PModemPo|rt or kD|
|00000560| 54 50 55 6e 6b 6e 6f 77 | 6e 50 6f 72 74 0d 09 53 |TPUnknow|nPort..S|
|00000570| 74 72 33 31 09 70 6f 72 | 74 4e 61 6d 65 3b 09 2f |tr31.por|tName;./|
|00000580| 2f 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 70 6f |/ name o|f the po|
|00000590| 72 74 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 |rt speci|fied in |
|000005a0| 74 68 65 20 70 6f 72 74 | 20 66 69 65 6c 64 0d 7d |the port| field.}|
|000005b0| 20 44 54 50 53 65 72 69 | 61 6c 41 64 64 72 65 73 | DTPSeri|alAddres|
|000005c0| 73 3b 0d 0d 2f 2f 20 41 | 70 70 6c 65 54 61 6c 6b |s;..// A|ppleTalk|
|000005d0| 20 70 72 69 6e 74 65 72 | 20 61 64 64 72 65 73 73 | printer| address|
|000005e0| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 0d |.typedef| struct.|
|000005f0| 7b 0d 09 53 74 72 33 32 | 09 6e 62 70 4e 61 6d 65 |{..Str32|.nbpName|
|00000600| 3b 0d 09 53 74 72 33 32 | 09 6e 62 70 5a 6f 6e 65 |;..Str32|.nbpZone|
|00000610| 3b 0d 09 53 74 72 33 32 | 09 6e 62 70 54 79 70 65 |;..Str32|.nbpType|
|00000620| 3b 0d 7d 20 44 54 50 41 | 70 70 6c 65 54 61 6c 6b |;.} DTPA|ppleTalk|
|00000630| 41 64 64 72 65 73 73 3b | 0d 0d 2f 2f 20 54 43 50 |Address;|..// TCP|
|00000640| 2f 49 50 20 70 72 69 6e | 74 65 72 20 61 64 64 72 |/IP prin|ter addr|
|00000650| 65 73 73 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |ess.type|def stru|
|00000660| 63 74 0d 7b 0d 09 53 74 | 72 32 35 35 09 54 43 50 |ct.{..St|r255.TCP|
|00000670| 49 50 41 64 64 72 65 73 | 73 3b 0d 09 53 74 72 32 |IPAddres|s;..Str2|
|00000680| 35 35 09 71 75 65 75 65 | 4e 61 6d 65 3b 0d 7d 20 |55.queue|Name;.} |
|00000690| 44 54 50 54 43 50 49 50 | 41 64 64 72 65 73 73 3b |DTPTCPIP|Address;|
|000006a0| 0d 0d 2f 2f 20 53 43 53 | 49 20 70 72 69 6e 74 65 |..// SCS|I printe|
|000006b0| 72 20 61 64 64 72 65 73 | 73 0d 74 79 70 65 64 65 |r addres|s.typede|
|000006c0| 66 20 73 74 72 75 63 74 | 0d 7b 0d 09 73 68 6f 72 |f struct|.{..shor|
|000006d0| 74 09 69 64 3b 09 09 09 | 2f 2f 20 53 43 53 49 20 |t.id;...|// SCSI |
|000006e0| 69 64 0d 7d 20 44 54 50 | 53 43 53 49 41 64 64 72 |id.} DTP|SCSIAddr|
|000006f0| 65 73 73 3b 0d 0d 2f 2f | 20 55 53 42 20 70 72 69 |ess;..//| USB pri|
|00000700| 6e 74 65 72 20 61 64 64 | 72 65 73 73 0d 74 79 70 |nter add|ress.typ|
|00000710| 65 64 65 66 20 73 74 72 | 75 63 74 0d 7b 0d 09 53 |edef str|uct.{..S|
|00000720| 74 72 32 35 35 09 6e 61 | 6d 65 3b 09 09 2f 2f 20 |tr255.na|me;..// |
|00000730| 70 72 69 6e 74 65 72 20 | 6e 61 6d 65 0d 7d 20 44 |printer |name.} D|
|00000740| 54 50 55 53 42 41 64 64 | 72 65 73 73 3b 0d 0d 2f |TPUSBAdd|ress;../|
|00000750| 2f 20 64 61 74 61 20 70 | 61 73 73 65 64 20 69 6e |/ data p|assed in|
|00000760| 74 6f 20 74 68 65 20 50 | 72 47 65 6e 65 72 61 6c |to the P|rGeneral|
|00000770| 20 63 61 6c 6c 73 0d 74 | 79 70 65 64 65 66 20 73 | calls.t|ypedef s|
|00000780| 74 72 75 63 74 0d 7b 0d | 09 53 74 72 33 31 09 64 |truct.{.|.Str31.d|
|00000790| 74 70 44 65 66 61 75 6c | 74 4e 61 6d 65 3b 09 09 |tpDefaul|tName;..|
|000007a0| 2f 2f 20 64 65 66 61 75 | 6c 74 20 6e 61 6d 65 20 |// defau|lt name |
|000007b0| 66 6f 72 20 74 68 65 20 | 64 65 73 6b 74 6f 70 20 |for the |desktop |
|000007c0| 70 72 69 6e 74 65 72 2e | 0d 09 73 68 6f 72 74 09 |printer.|..short.|
|000007d0| 70 72 69 6e 74 65 72 54 | 79 70 65 3b 09 09 2f 2f |printerT|ype;..//|
|000007e0| 20 6b 44 54 50 53 65 72 | 69 61 6c 50 72 69 6e 74 | kDTPSer|ialPrint|
|000007f0| 65 72 54 79 70 65 2c 20 | 6b 44 54 50 41 70 70 6c |erType, |kDTPAppl|
|00000800| 65 54 61 6c 6b 50 72 69 | 6e 74 65 72 54 79 70 65 |eTalkPri|nterType|
|00000810| 2c 20 6b 44 54 50 54 43 | 50 49 50 50 72 69 6e 74 |, kDTPTC|PIPPrint|
|00000820| 65 72 54 79 70 65 2c 0d | 09 09 09 09 09 09 09 09 |erType,.|........|
|00000830| 2f 2f 20 6b 44 54 50 53 | 43 53 49 50 72 69 6e 74 |// kDTPS|CSIPrint|
|00000840| 65 72 54 79 70 65 2c 20 | 6b 44 54 50 55 53 42 50 |erType, |kDTPUSBP|
|00000850| 72 69 6e 74 65 72 54 79 | 70 65 20 6f 72 20 6b 44 |rinterTy|pe or kD|
|00000860| 54 50 55 6e 6b 6e 6f 77 | 6e 50 72 69 6e 74 65 72 |TPUnknow|nPrinter|
|00000870| 54 79 70 65 0d 0d 09 2f | 2f 20 49 6e 66 6f 20 73 |Type.../|/ Info s|
|00000880| 70 65 63 69 66 69 63 20 | 74 6f 20 65 61 63 68 20 |pecific |to each |
|00000890| 74 79 70 65 20 6f 66 20 | 70 72 69 6e 74 65 72 73 |type of |printers|
|000008a0| 0d 09 75 6e 69 6f 6e 0d | 09 7b 0d 09 09 44 54 50 |..union.|.{...DTP|
|000008b0| 53 65 72 69 61 6c 41 64 | 64 72 65 73 73 09 09 73 |SerialAd|dress..s|
|000008c0| 65 72 69 61 6c 3b 0d 09 | 09 44 54 50 41 70 70 6c |erial;..|.DTPAppl|
|000008d0| 65 54 61 6c 6b 41 64 64 | 72 65 73 73 09 09 61 70 |eTalkAdd|ress..ap|
|000008e0| 70 6c 65 54 61 6c 6b 3b | 0d 09 09 44 54 50 54 43 |pleTalk;|...DTPTC|
|000008f0| 50 49 50 41 64 64 72 65 | 73 73 09 09 09 74 63 70 |PIPAddre|ss...tcp|
|00000900| 69 70 3b 0d 09 09 44 54 | 50 53 43 53 49 41 64 64 |ip;...DT|PSCSIAdd|
|00000910| 72 65 73 73 09 09 09 73 | 63 73 69 3b 0d 09 09 44 |ress...s|csi;...D|
|00000920| 54 50 55 53 42 41 64 64 | 72 65 73 73 09 09 09 75 |TPUSBAdd|ress...u|
|00000930| 73 62 3b 0d 09 7d 20 75 | 3b 0d 09 0d 09 2f 2f 20 |sb;..} u|;....// |
|00000940| 6f 70 74 69 6f 6e 61 6c | 20 64 72 69 76 65 72 2d |optional| driver-|
|00000950| 73 70 65 63 69 66 69 63 | 20 69 6e 66 6f 72 6d 61 |specific| informa|
|00000960| 74 69 6f 6e 20 63 61 6e | 20 62 65 20 61 70 70 65 |tion can| be appe|
|00000970| 6e 64 65 64 20 68 65 72 | 65 0d 09 0d 7d 20 44 54 |nded her|e...} DT|
|00000980| 50 50 72 69 6e 74 65 72 | 49 6e 66 6f 2c 20 2a 2a |PPrinter|Info, **|
|00000990| 44 54 50 50 72 69 6e 74 | 65 72 49 6e 66 6f 48 61 |DTPPrint|erInfoHa|
|000009a0| 6e 64 6c 65 3b 0d 0d 74 | 79 70 65 64 65 66 20 73 |ndle;..t|ypedef s|
|000009b0| 74 72 75 63 74 0d 7b 0d | 09 73 68 6f 72 74 09 09 |truct.{.|.short..|
|000009c0| 09 09 09 69 4f 70 43 6f | 64 65 3b 09 09 09 2f 2f |...iOpCo|de;...//|
|000009d0| 20 6b 44 54 50 47 65 74 | 50 72 69 6e 74 65 72 49 | kDTPGet|PrinterI|
|000009e0| 6e 66 6f 2c 20 6b 44 54 | 50 49 73 53 61 6d 65 50 |nfo, kDT|PIsSameP|
|000009f0| 72 69 6e 74 65 72 49 6e | 66 6f 20 6f 72 20 6b 44 |rinterIn|fo or kD|
|00000a00| 54 50 53 65 74 44 65 66 | 61 75 6c 74 50 72 69 6e |TPSetDef|aultPrin|
|00000a10| 74 65 72 49 6e 66 6f 0d | 09 73 68 6f 72 74 09 09 |terInfo.|.short..|
|00000a20| 09 09 09 69 45 72 72 6f | 72 3b 0d 09 6c 6f 6e 67 |...iErro|r;..long|
|00000a30| 09 09 09 09 09 69 43 6f | 6d 6d 61 6e 64 3b 0d 09 |.....iCo|mmand;..|
|00000a40| 44 54 50 50 72 69 6e 74 | 65 72 49 6e 66 6f 48 61 |DTPPrint|erInfoHa|
|00000a50| 6e 64 6c 65 09 70 72 69 | 6e 74 65 72 49 6e 66 6f |ndle.pri|nterInfo|
|00000a60| 3b 0d 7d 20 54 44 54 50 | 50 72 47 65 6e 65 72 61 |;.} TDTP|PrGenera|
|00000a70| 6c 44 61 74 61 3b 0d 0d | 2f 2f 0d 2f 2f 20 64 65 |lData;..|//.// de|
|00000a80| 73 6b 74 6f 70 20 70 72 | 69 6e 74 65 72 20 69 6e |sktop pr|inter in|
|00000a90| 66 6f 20 72 65 73 6f 75 | 72 63 65 0d 2f 2f 0d 23 |fo resou|rce.//.#|
|00000aa0| 64 65 66 69 6e 65 09 6b | 44 54 50 49 6e 66 6f 52 |define.k|DTPInfoR|
|00000ab0| 65 73 54 79 70 65 09 27 | 64 74 70 69 27 0d 23 64 |esType.'|dtpi'.#d|
|00000ac0| 65 66 69 6e 65 20 6b 44 | 54 50 49 6e 66 6f 52 65 |efine kD|TPInfoRe|
|00000ad0| 73 49 44 09 2d 38 31 39 | 32 0d 0d 2f 2f 20 63 6f |sID.-819|2..// co|
|00000ae0| 6e 6e 65 63 74 69 6f 6e | 20 74 79 70 65 73 20 73 |nnection| types s|
|00000af0| 75 70 70 6f 72 74 65 64 | 0d 23 64 65 66 69 6e 65 |upported|.#define|
|00000b00| 20 6b 44 54 50 55 6e 6b | 6e 6f 77 6e 43 6f 6e 6e | kDTPUnk|nownConn|
|00000b10| 65 63 74 69 6f 6e 09 09 | 09 30 78 30 30 30 30 30 |ection..|.0x00000|
|00000b20| 30 30 30 09 2f 2f 20 75 | 6e 6b 6e 6f 77 6e 20 63 |000.// u|nknown c|
|00000b30| 6f 6e 6e 65 63 74 69 6f | 6e 20 74 79 70 65 0d 23 |onnectio|n type.#|
|00000b40| 64 65 66 69 6e 65 20 6b | 44 54 50 53 65 72 69 61 |define k|DTPSeria|
|00000b50| 6c 43 6f 6e 6e 65 63 74 | 69 6f 6e 09 09 09 30 78 |lConnect|ion...0x|
|00000b60| 30 30 30 30 30 30 30 31 | 09 2f 2f 20 73 65 72 69 |00000001|.// seri|
|00000b70| 61 6c 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 0d 23 64 |al conne|ction.#d|
|00000b80| 65 66 69 6e 65 20 6b 44 | 54 50 53 43 53 49 43 6f |efine kD|TPSCSICo|
|00000b90| 6e 6e 65 63 74 69 6f 6e | 09 09 09 09 30 78 30 30 |nnection|....0x00|
|00000ba0| 30 30 30 30 30 32 09 2f | 2f 20 53 43 53 49 20 63 |000002./|/ SCSI c|
|00000bb0| 6f 6e 6e 65 63 74 69 6f | 6e 0d 23 64 65 66 69 6e |onnectio|n.#defin|
|00000bc0| 65 20 6b 44 54 50 41 70 | 70 6c 65 54 61 6c 6b 43 |e kDTPAp|pleTalkC|
|00000bd0| 6f 6e 6e 65 63 74 69 6f | 6e 09 09 09 30 78 30 30 |onnectio|n...0x00|
|00000be0| 30 30 30 30 30 34 09 2f | 2f 20 41 70 70 6c 65 54 |000004./|/ AppleT|
|00000bf0| 61 6c 6b 20 63 6f 6e 6e | 65 63 74 69 6f 6e 0d 23 |alk conn|ection.#|
|00000c00| 64 65 66 69 6e 65 20 6b | 44 54 50 54 43 50 49 50 |define k|DTPTCPIP|
|00000c10| 43 6f 6e 6e 65 63 74 69 | 6f 6e 09 09 09 09 30 78 |Connecti|on....0x|
|00000c20| 30 30 30 30 30 30 30 38 | 09 2f 2f 20 54 43 50 2f |00000008|.// TCP/|
|00000c30| 49 50 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 0d 23 64 |IP conne|ction.#d|
|00000c40| 65 66 69 6e 65 20 6b 44 | 54 50 55 53 42 43 6f 6e |efine kD|TPUSBCon|
|00000c50| 6e 65 63 74 69 6f 6e 09 | 09 09 09 30 78 30 30 30 |nection.|...0x000|
|00000c60| 30 30 30 31 30 09 2f 2f | 20 55 53 42 20 63 6f 6e |00010.//| USB con|
|00000c70| 6e 65 63 74 69 6f 6e 0d | 0d 2f 2f 20 64 74 70 20 |nection.|.// dtp |
|00000c80| 65 78 74 72 61 20 66 65 | 61 74 75 72 65 73 20 73 |extra fe|atures s|
|00000c90| 75 70 70 6f 72 74 65 64 | 0d 23 64 65 66 69 6e 65 |upported|.#define|
|00000ca0| 20 6b 44 54 50 42 61 73 | 69 63 46 65 61 74 75 72 | kDTPBas|icFeatur|
|00000cb0| 65 73 09 09 09 30 78 30 | 30 30 30 30 30 30 30 09 |es...0x0|0000000.|
|00000cc0| 2f 2f 20 6f 6e 6c 79 20 | 62 61 73 69 63 20 64 74 |// only |basic dt|
|00000cd0| 70 20 66 75 6e 74 69 6f | 6e 61 6c 69 74 69 65 73 |p funtio|nalities|
|00000ce0| 20 61 72 65 20 73 75 70 | 70 6f 72 74 65 64 0d 0d | are sup|ported..|
|00000cf0| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 0d 7b |typedef |struct.{|
|00000d00| 0d 09 6c 6f 6e 67 09 66 | 65 61 74 75 72 65 73 3b |..long.f|eatures;|
|00000d10| 09 09 2f 2f 20 6b 44 54 | 50 42 61 73 69 63 46 65 |..// kDT|PBasicFe|
|00000d20| 61 74 75 72 65 73 20 28 | 6f 6e 6c 79 20 62 61 73 |atures (|only bas|
|00000d30| 69 63 20 66 65 61 74 75 | 72 65 73 20 61 72 65 20 |ic featu|res are |
|00000d40| 73 75 70 70 6f 72 74 65 | 64 20 66 6f 72 20 4d 61 |supporte|d for Ma|
|00000d50| 63 4f 53 20 38 2e 35 29 | 0d 09 6c 6f 6e 67 09 63 |cOS 8.5)|..long.c|
|00000d60| 6f 6e 6e 65 63 74 69 6f | 6e 54 79 70 65 3b 09 2f |onnectio|nType;./|
|00000d70| 2f 20 63 61 6e 20 62 65 | 20 6b 44 54 50 55 6e 6b |/ can be| kDTPUnk|
|00000d80| 6e 6f 77 6e 43 6f 6e 6e | 65 63 74 69 6f 6e 20 6f |nownConn|ection o|
|00000d90| 72 20 61 6e 79 20 63 6f | 6d 62 69 6e 61 74 69 6f |r any co|mbinatio|
|00000da0| 6e 20 6f 66 20 6b 44 54 | 50 53 65 72 69 61 6c 43 |n of kDT|PSerialC|
|00000db0| 6f 6e 6e 65 63 74 69 6f | 6e 2c 20 0d 09 09 09 09 |onnectio|n, .....|
|00000dc0| 09 09 09 2f 2f 20 6b 44 | 54 50 53 43 53 49 43 6f |...// kD|TPSCSICo|
|00000dd0| 6e 6e 65 63 74 69 6f 6e | 2c 20 6b 44 54 50 41 70 |nnection|, kDTPAp|
|00000de0| 70 6c 65 54 61 6c 6b 43 | 6f 6e 6e 65 63 74 69 6f |pleTalkC|onnectio|
|00000df0| 6e 2c 20 6b 44 54 50 54 | 43 50 49 50 43 6f 6e 6e |n, kDTPT|CPIPConn|
|00000e00| 65 63 74 69 6f 6e 20 61 | 6e 64 20 6b 44 54 50 55 |ection a|nd kDTPU|
|00000e10| 53 42 43 6f 6e 6e 65 63 | 74 69 6f 6e 0d 7d 20 44 |SBConnec|tion.} D|
|00000e20| 54 50 49 6e 66 6f 52 65 | 73 6f 75 72 63 65 3b 0d |TPInfoRe|source;.|
|00000e30| 0d 0d 2f 2f 0d 2f 2f 20 | 44 65 73 6b 74 6f 70 20 |..//.// |Desktop |
|00000e40| 50 72 69 6e 74 69 6e 67 | 20 46 65 61 74 75 72 65 |Printing| Feature|
|00000e50| 20 47 65 73 74 61 6c 74 | 0d 2f 2f 20 55 73 65 20 | Gestalt|.// Use |
|00000e60| 74 68 69 73 20 67 65 73 | 74 61 6c 74 20 74 6f 20 |this ges|talt to |
|00000e70| 63 68 65 63 6b 20 69 66 | 20 74 68 69 72 64 2d 70 |check if| third-p|
|00000e80| 61 72 74 79 20 70 72 69 | 6e 74 65 72 20 64 72 69 |arty pri|nter dri|
|00000e90| 76 65 72 20 73 75 70 70 | 6f 72 74 20 69 73 20 61 |ver supp|ort is a|
|00000ea0| 76 61 69 6c 61 62 6c 65 | 0d 2f 2f 0d 65 6e 75 6d |vailable|.//.enum|
|00000eb0| 20 7b 20 67 65 73 74 61 | 6c 74 44 54 50 46 65 61 | { gesta|ltDTPFea|
|00000ec0| 74 75 72 65 73 20 3d 20 | 27 64 74 70 66 27 20 7d |tures = |'dtpf' }|
|00000ed0| 3b 0d 23 64 65 66 69 6e | 65 09 6b 44 54 50 54 68 |;.#defin|e.kDTPTh|
|00000ee0| 69 72 64 50 61 72 74 79 | 53 75 70 70 6f 72 74 65 |irdParty|Supporte|
|00000ef0| 64 09 30 78 30 30 30 30 | 30 30 30 34 09 09 09 2f |d.0x0000|0004.../|
|00000f00| 2f 20 6d 61 73 6b 20 66 | 6f 72 20 63 68 65 63 6b |/ mask f|or check|
|00000f10| 69 6e 67 20 69 66 20 74 | 68 69 72 64 2d 70 61 72 |ing if t|hird-par|
|00000f20| 74 79 20 64 72 69 76 65 | 72 73 20 61 72 65 20 73 |ty drive|rs are s|
|00000f30| 75 70 70 6f 72 74 65 64 | 0d 0d 0d 2f 2f 0d 2f 2f |upported|...//.//|
|00000f40| 20 44 65 73 6b 74 6f 70 | 20 50 72 69 6e 74 65 72 | Desktop| Printer|
|00000f50| 20 49 6e 66 6f 20 47 65 | 73 74 61 6c 74 0d 2f 2f | Info Ge|stalt.//|
|00000f60| 20 55 73 65 20 74 68 69 | 73 20 67 65 73 74 61 6c | Use thi|s gestal|
|00000f70| 74 20 74 6f 20 67 65 74 | 20 61 20 68 6f 6c 64 20 |t to get| a hold |
|00000f80| 6f 66 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |of infor|mation f|
|00000f90| 6f 72 20 61 6c 6c 20 6f | 66 20 74 68 65 20 61 63 |or all o|f the ac|
|00000fa0| 74 69 76 65 20 64 65 73 | 6b 74 6f 70 20 70 72 69 |tive des|ktop pri|
|00000fb0| 6e 74 65 72 73 0d 2f 2f | 0d 65 6e 75 6d 20 7b 20 |nters.//|.enum { |
|00000fc0| 67 65 73 74 61 6c 74 44 | 54 50 49 6e 66 6f 20 3d |gestaltD|TPInfo =|
|00000fd0| 20 27 64 74 70 78 27 20 | 7d 3b 0d 65 6e 75 6d 20 | 'dtpx' |};.enum |
|00000fe0| 0d 7b 0d 09 6b 44 54 50 | 47 65 73 74 61 6c 74 53 |.{..kDTP|GestaltS|
|00000ff0| 74 72 75 63 74 56 65 72 | 73 69 6f 6e 32 09 3d 20 |tructVer|sion2.= |
|00001000| 30 78 30 32 30 30 38 30 | 30 30 2c 09 2f 2f 20 76 |0x020080|00,.// v|
|00001010| 65 72 73 69 6f 6e 20 32 | 2e 30 66 30 20 28 66 6f |ersion 2|.0f0 (fo|
|00001020| 72 20 4d 61 63 20 4f 53 | 20 38 2e 30 2c 20 38 2e |r Mac OS| 8.0, 8.|
|00001030| 31 20 61 6e 64 20 37 2e | 78 29 0d 09 6b 44 54 50 |1 and 7.|x)..kDTP|
|00001040| 47 65 73 74 61 6c 74 53 | 74 72 75 63 74 56 65 72 |GestaltS|tructVer|
|00001050| 73 69 6f 6e 33 09 3d 20 | 30 78 30 33 30 30 30 30 |sion3.= |0x030000|
|00001060| 30 30 09 2f 2f 20 76 65 | 72 73 69 6f 6e 20 33 2e |00.// ve|rsion 3.|
|00001070| 30 20 28 66 6f 72 20 4d | 61 63 20 4f 53 20 38 2e |0 (for M|ac OS 8.|
|00001080| 35 29 0d 7d 3b 0d 0d 2f | 2f 20 44 54 50 49 6e 66 |5).};../|/ DTPInf|
|00001090| 6f 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |o.typede|f struct|
|000010a0| 0d 7b 0d 09 73 68 6f 72 | 74 09 76 52 65 66 4e 75 |.{..shor|t.vRefNu|
|000010b0| 6d 3b 09 09 2f 2f 20 76 | 52 65 66 4e 75 6d 20 6f |m;..// v|RefNum o|
|000010c0| 66 20 74 68 65 20 44 54 | 50 20 66 6f 6c 64 65 72 |f the DT|P folder|
|000010d0| 0d 09 6c 6f 6e 67 09 64 | 69 72 49 44 3b 09 09 09 |..long.d|irID;...|
|000010e0| 2f 2f 20 64 69 72 65 63 | 74 6f 72 79 20 49 44 20 |// direc|tory ID |
|000010f0| 6f 66 20 74 68 65 20 44 | 54 50 20 66 6f 6c 64 65 |of the D|TP folde|
|00001100| 72 0d 09 53 74 72 33 31 | 09 64 74 70 4e 61 6d 65 |r..Str31|.dtpName|
|00001110| 3b 09 09 2f 2f 20 6e 61 | 6d 65 20 6f 66 20 74 68 |;..// na|me of th|
|00001120| 65 20 44 54 50 20 66 6f | 6c 64 65 72 0d 09 4f 53 |e DTP fo|lder..OS|
|00001130| 54 79 70 65 09 64 72 69 | 76 65 72 54 79 70 65 3b |Type.dri|verType;|
|00001140| 09 09 2f 2f 20 63 72 65 | 61 74 6f 72 20 74 79 70 |..// cre|ator typ|
|00001150| 65 20 6f 66 20 74 68 65 | 20 70 72 69 6e 74 20 64 |e of the| print d|
|00001160| 72 69 76 65 72 20 66 6f | 72 20 74 68 69 73 20 44 |river fo|r this D|
|00001170| 54 50 0d 09 42 6f 6f 6c | 65 61 6e 09 63 75 72 72 |TP..Bool|ean.curr|
|00001180| 65 6e 74 3b 09 09 2f 2f | 20 69 73 20 74 68 69 73 |ent;..//| is this|
|00001190| 20 44 54 50 20 63 75 72 | 72 65 6e 74 6c 79 20 74 | DTP cur|rently t|
|000011a0| 68 65 20 64 65 66 61 75 | 6c 74 20 70 72 69 6e 74 |he defau|lt print|
|000011b0| 65 72 3f 0d 09 53 74 72 | 33 32 09 70 72 69 6e 74 |er?..Str|32.print|
|000011c0| 65 72 4e 61 6d 65 3b 09 | 2f 2f 20 6e 61 6d 65 20 |erName;.|// name |
|000011d0| 6f 66 20 74 68 65 20 61 | 63 75 74 61 6c 20 70 72 |of the a|cutal pr|
|000011e0| 69 6e 74 65 72 20 6f 6e | 20 74 68 65 20 6e 65 74 |inter on| the net|
|000011f0| 20 28 6f 6e 6c 79 20 66 | 6f 72 20 4c 61 73 65 72 | (only f|or Laser|
|00001200| 57 72 69 74 65 72 20 38 | 20 64 74 70 73 29 0d 09 |Writer 8| dtps)..|
|00001210| 53 74 72 33 32 09 7a 6f | 6e 65 4e 61 6d 65 3b 09 |Str32.zo|neName;.|
|00001220| 09 2f 2f 20 7a 6f 6e 65 | 20 77 68 65 72 65 20 74 |.// zone| where t|
|00001230| 68 69 73 20 70 72 69 6e | 74 65 72 20 72 65 73 69 |his prin|ter resi|
|00001240| 64 65 73 20 28 6f 6e 6c | 79 20 66 6f 72 20 4c 61 |des (onl|y for La|
|00001250| 73 65 72 57 72 69 74 65 | 72 20 38 20 64 74 70 73 |serWrite|r 8 dtps|
|00001260| 29 0d 7d 20 44 54 50 49 | 6e 66 6f 3b 0d 0d 2f 2f |).} DTPI|nfo;..//|
|00001270| 20 64 61 74 61 20 61 73 | 73 6f 63 69 61 74 65 64 | data as|sociated|
|00001280| 20 77 69 74 68 20 74 68 | 65 20 64 65 73 6b 74 6f | with th|e deskto|
|00001290| 70 20 70 72 69 6e 74 65 | 72 20 69 6e 66 6f 20 67 |p printe|r info g|
|000012a0| 65 73 74 61 6c 74 0d 74 | 79 70 65 64 65 66 20 73 |estalt.t|ypedef s|
|000012b0| 74 72 75 63 74 0d 7b 0d | 09 6c 6f 6e 67 20 09 76 |truct.{.|.long .v|
|000012c0| 65 72 73 69 6f 6e 3b 09 | 09 09 2f 2f 20 6b 44 54 |ersion;.|..// kDT|
|000012d0| 50 47 65 73 74 61 6c 74 | 53 74 72 75 63 74 56 65 |PGestalt|StructVe|
|000012e0| 72 73 69 6f 6e 33 20 6f | 72 20 6b 44 54 50 47 65 |rsion3 o|r kDTPGe|
|000012f0| 73 74 61 6c 74 53 74 72 | 75 63 74 56 65 72 73 69 |staltStr|uctVersi|
|00001300| 6f 6e 32 0d 09 73 68 6f | 72 74 09 6e 75 6d 44 54 |on2..sho|rt.numDT|
|00001310| 50 73 3b 09 09 09 2f 2f | 20 6e 75 6d 62 65 72 20 |Ps;...//| number |
|00001320| 6f 66 20 74 68 65 20 61 | 63 74 69 76 65 20 64 74 |of the a|ctive dt|
|00001330| 70 73 0d 09 48 61 6e 64 | 6c 65 09 74 68 65 44 54 |ps..Hand|le.theDT|
|00001340| 50 4c 69 73 74 3b 09 09 | 09 2f 2f 20 68 61 6e 64 |PList;..|.// hand|
|00001350| 6c 65 20 74 6f 20 61 20 | 6c 69 73 74 20 6f 66 20 |le to a |list of |
|00001360| 44 54 50 49 6e 66 6f 20 | 66 6f 72 20 74 68 65 20 |DTPInfo |for the |
|00001370| 61 63 74 69 76 65 20 64 | 74 70 73 0d 09 48 61 6e |active d|tps..Han|
|00001380| 64 6c 65 09 74 68 65 44 | 54 50 44 72 69 76 65 72 |dle.theD|TPDriver|
|00001390| 4c 69 73 74 3b 09 2f 2f | 20 68 61 6e 64 6c 65 20 |List;.//| handle |
|000013a0| 74 6f 20 61 20 6c 69 73 | 74 20 6f 66 20 70 72 69 |to a lis|t of pri|
|000013b0| 6e 74 20 64 72 69 76 65 | 72 20 66 69 6c 65 20 73 |nt drive|r file s|
|000013c0| 70 65 63 73 20 66 6f 72 | 20 65 61 63 68 20 6f 66 |pecs for| each of|
|000013d0| 20 74 68 65 20 61 63 74 | 69 76 65 20 64 74 70 20 | the act|ive dtp |
|000013e0| 69 6e 20 74 68 65 44 54 | 50 4c 69 73 74 0d 09 6c |in theDT|PList..l|
|000013f0| 6f 6e 67 09 72 65 73 65 | 72 76 65 64 3b 0d 7d 20 |ong.rese|rved;.} |
|00001400| 47 65 73 74 61 6c 74 44 | 54 50 49 6e 66 6f 2c 20 |GestaltD|TPInfo, |
|00001410| 2a 2a 47 65 73 74 61 6c | 74 44 54 50 49 6e 66 6f |**Gestal|tDTPInfo|
|00001420| 48 64 6c 65 3b 0d 0d 0d | 2f 2f 0d 2f 2f 20 41 70 |Hdle;...|//.// Ap|
|00001430| 70 6c 65 45 76 65 6e 74 | 73 20 0d 2f 2f 0d 23 64 |pleEvent|s .//.#d|
|00001440| 65 66 69 6e 65 20 6b 44 | 54 50 53 69 67 6e 61 74 |efine kD|TPSignat|
|00001450| 75 72 65 09 09 09 09 27 | 64 74 70 78 27 0d 23 64 |ure....'|dtpx'.#d|
|00001460| 65 66 69 6e 65 20 61 65 | 44 54 50 53 65 74 44 65 |efine ae|DTPSetDe|
|00001470| 66 61 75 6c 74 45 76 65 | 6e 74 54 79 70 65 09 27 |faultEve|ntType.'|
|00001480| 70 66 73 64 27 09 2f 2f | 20 66 6f 72 20 73 65 74 |pfsd'.//| for set|
|00001490| 74 69 6e 67 20 61 20 64 | 65 73 6b 74 6f 70 20 70 |ting a d|esktop p|
|000014a0| 72 69 6e 74 65 72 20 74 | 6f 20 62 65 20 74 68 65 |rinter t|o be the|
|000014b0| 20 64 65 66 61 75 6c 74 | 0d 23 64 65 66 69 6e 65 | default|.#define|
|000014c0| 20 61 65 44 54 50 53 79 | 6e 63 45 76 65 6e 74 54 | aeDTPSy|ncEventT|
|000014d0| 79 70 65 09 09 09 27 70 | 66 73 63 27 09 2f 2f 20 |ype...'p|fsc'.// |
|000014e0| 66 6f 72 20 6e 6f 74 69 | 66 79 69 6e 67 20 44 65 |for noti|fying De|
|000014f0| 73 6b 74 6f 70 20 50 72 | 69 6e 74 4d 6f 6e 69 74 |sktop Pr|intMonit|
|00001500| 6f 72 20 6f 66 20 61 20 | 6e 65 77 20 73 70 6f 6f |or of a |new spoo|
|00001510| 6c 20 66 69 6c 65 20 63 | 72 65 61 74 65 64 20 69 |l file c|reated i|
|00001520| 6e 20 61 20 64 65 73 6b | 74 6f 70 20 70 72 69 6e |n a desk|top prin|
|00001530| 74 65 72 20 66 6f 6c 64 | 65 72 0d 0d 2f 2f 20 65 |ter fold|er..// e|
|00001540| 76 65 6e 74 20 64 61 74 | 61 0d 74 79 70 65 64 65 |vent dat|a.typede|
|00001550| 66 20 73 74 72 75 63 74 | 0d 7b 0d 09 4f 53 54 79 |f struct|.{..OSTy|
|00001560| 70 65 09 64 74 70 53 69 | 67 6e 61 74 75 72 65 3b |pe.dtpSi|gnature;|
|00001570| 09 2f 2f 20 6b 44 54 50 | 53 69 67 6e 61 74 75 72 |.// kDTP|Signatur|
|00001580| 65 0d 09 4f 53 54 79 70 | 65 09 64 74 70 45 76 65 |e..OSTyp|e.dtpEve|
|00001590| 6e 74 54 79 70 65 3b 09 | 2f 2f 20 61 65 44 54 50 |ntType;.|// aeDTP|
|000015a0| 53 65 74 44 65 66 61 75 | 6c 74 45 76 65 6e 74 54 |SetDefau|ltEventT|
|000015b0| 79 70 65 20 6f 72 20 61 | 65 44 54 50 53 79 6e 63 |ype or a|eDTPSync|
|000015c0| 45 76 65 6e 74 54 79 70 | 65 0d 09 46 53 53 70 65 |EventTyp|e..FSSpe|
|000015d0| 63 09 64 74 70 53 70 65 | 63 3b 09 09 2f 2f 20 74 |c.dtpSpe|c;..// t|
|000015e0| 68 65 20 66 69 6c 65 20 | 73 70 65 63 20 6f 66 20 |he file |spec of |
|000015f0| 74 68 65 20 74 61 72 67 | 65 74 20 64 74 70 0d 7d |the targ|et dtp.}|
|00001600| 20 44 54 50 41 70 70 6c | 65 45 76 65 6e 74 44 61 | DTPAppl|eEventDa|
|00001610| 74 61 3b 0d 0d 2f 2f 0d | 2f 2f 20 4e 6f 74 69 66 |ta;..//.|// Notif|
|00001620| 69 63 61 74 69 6f 6e 20 | 64 75 72 69 6e 67 20 64 |ication |during d|
|00001630| 65 2d 73 70 6f 6f 6c 69 | 6e 67 0d 2f 2f 0d 0d 2f |e-spooli|ng.//../|
|00001640| 2f 20 44 54 50 41 73 79 | 6e 63 45 72 72 6f 72 4e |/ DTPAsy|ncErrorN|
|00001650| 6f 74 69 66 69 63 61 74 | 69 6f 6e 55 50 50 0d 74 |otificat|ionUPP.t|
|00001660| 79 70 65 64 65 66 20 70 | 61 73 63 61 6c 20 76 6f |ypedef p|ascal vo|
|00001670| 69 64 20 28 2a 44 54 50 | 41 73 79 6e 63 45 72 72 |id (*DTP|AsyncErr|
|00001680| 6f 72 4e 6f 74 69 66 69 | 63 61 74 69 6f 6e 50 72 |orNotifi|cationPr|
|00001690| 6f 63 50 74 72 29 20 28 | 53 74 72 69 6e 67 48 61 |ocPtr) (|StringHa|
|000016a0| 6e 64 6c 65 20 73 74 72 | 69 6e 67 29 3b 0d 0d 23 |ndle str|ing);..#|
|000016b0| 69 66 20 47 45 4e 45 52 | 41 54 49 4e 47 43 46 4d |if GENER|ATINGCFM|
|000016c0| 0d 74 79 70 65 64 65 66 | 20 55 6e 69 76 65 72 73 |.typedef| Univers|
|000016d0| 61 6c 50 72 6f 63 50 74 | 72 20 44 54 50 41 73 79 |alProcPt|r DTPAsy|
|000016e0| 6e 63 45 72 72 6f 72 4e | 6f 74 69 66 69 63 61 74 |ncErrorN|otificat|
|000016f0| 69 6f 6e 55 50 50 3b 0d | 23 65 6c 73 65 0d 74 79 |ionUPP;.|#else.ty|
|00001700| 70 65 64 65 66 20 44 54 | 50 41 73 79 6e 63 45 72 |pedef DT|PAsyncEr|
|00001710| 72 6f 72 4e 6f 74 69 66 | 69 63 61 74 69 6f 6e 50 |rorNotif|icationP|
|00001720| 72 6f 63 50 74 72 20 44 | 54 50 41 73 79 6e 63 45 |rocPtr D|TPAsyncE|
|00001730| 72 72 6f 72 4e 6f 74 69 | 66 69 63 61 74 69 6f 6e |rrorNoti|fication|
|00001740| 55 50 50 3b 0d 23 65 6e | 64 69 66 0d 0d 65 6e 75 |UPP;.#en|dif..enu|
|00001750| 6d 0d 7b 0d 09 75 70 70 | 44 54 50 41 73 79 6e 63 |m.{..upp|DTPAsync|
|00001760| 45 72 72 6f 72 4e 6f 74 | 69 66 69 63 61 74 69 6f |ErrorNot|ificatio|
|00001770| 6e 50 72 6f 63 49 6e 66 | 6f 20 3d 20 6b 50 61 73 |nProcInf|o = kPas|
|00001780| 63 61 6c 53 74 61 63 6b | 42 61 73 65 64 0d 09 09 |calStack|Based...|
|00001790| 20 7c 20 53 54 41 43 4b | 5f 52 4f 55 54 49 4e 45 | | STACK|_ROUTINE|
|000017a0| 5f 50 41 52 41 4d 45 54 | 45 52 28 31 2c 20 53 49 |_PARAMET|ER(1, SI|
|000017b0| 5a 45 5f 43 4f 44 45 28 | 73 69 7a 65 6f 66 28 53 |ZE_CODE(|sizeof(S|
|000017c0| 74 72 69 6e 67 48 61 6e | 64 6c 65 29 29 29 0d 7d |tringHan|dle))).}|
|000017d0| 3b 0d 0d 23 69 66 20 47 | 45 4e 45 52 41 54 49 4e |;..#if G|ENERATIN|
|000017e0| 47 43 46 4d 0d 23 64 65 | 66 69 6e 65 20 4e 65 77 |GCFM.#de|fine New|
|000017f0| 44 54 50 41 73 79 6e 63 | 45 72 72 6f 72 4e 6f 74 |DTPAsync|ErrorNot|
|00001800| 69 66 69 63 61 74 69 6f | 6e 50 72 6f 63 28 75 73 |ificatio|nProc(us|
|00001810| 65 72 52 6f 75 74 69 6e | 65 29 09 09 5c 0d 09 09 |erRoutin|e)..\...|
|00001820| 28 44 54 50 41 73 79 6e | 63 45 72 72 6f 72 4e 6f |(DTPAsyn|cErrorNo|
|00001830| 74 69 66 69 63 61 74 69 | 6f 6e 55 50 50 29 20 4e |tificati|onUPP) N|
|00001840| 65 77 52 6f 75 74 69 6e | 65 44 65 73 63 72 69 70 |ewRoutin|eDescrip|
|00001850| 74 6f 72 28 28 50 72 6f | 63 50 74 72 29 28 75 73 |tor((Pro|cPtr)(us|
|00001860| 65 72 52 6f 75 74 69 6e | 65 29 2c 20 75 70 70 44 |erRoutin|e), uppD|
|00001870| 54 50 41 73 79 6e 63 45 | 72 72 6f 72 4e 6f 74 69 |TPAsyncE|rrorNoti|
|00001880| 66 69 63 61 74 69 6f 6e | 50 72 6f 63 49 6e 66 6f |fication|ProcInfo|
|00001890| 2c 20 47 65 74 43 75 72 | 72 65 6e 74 49 53 41 28 |, GetCur|rentISA(|
|000018a0| 29 29 0d 23 65 6c 73 65 | 0d 23 64 65 66 69 6e 65 |)).#else|.#define|
|000018b0| 20 4e 65 77 44 54 50 41 | 73 79 6e 63 45 72 72 6f | NewDTPA|syncErro|
|000018c0| 72 4e 6f 74 69 66 69 63 | 61 74 69 6f 6e 50 72 6f |rNotific|ationPro|
|000018d0| 63 28 75 73 65 72 52 6f | 75 74 69 6e 65 29 09 09 |c(userRo|utine)..|
|000018e0| 5c 0d 09 09 28 44 54 50 | 41 73 79 6e 63 45 72 72 |\...(DTP|AsyncErr|
|000018f0| 6f 72 4e 6f 74 69 66 69 | 63 61 74 69 6f 6e 55 50 |orNotifi|cationUP|
|00001900| 50 29 28 75 73 65 72 52 | 6f 75 74 69 6e 65 29 0d |P)(userR|outine).|
|00001910| 23 65 6e 64 69 66 0d 0d | 23 69 66 20 47 45 4e 45 |#endif..|#if GENE|
|00001920| 52 41 54 49 4e 47 43 46 | 4d 0d 23 64 65 66 69 6e |RATINGCF|M.#defin|
|00001930| 65 20 43 61 6c 6c 44 54 | 50 41 73 79 6e 63 45 72 |e CallDT|PAsyncEr|
|00001940| 72 6f 72 4e 6f 74 69 66 | 69 63 61 74 69 6f 6e 50 |rorNotif|icationP|
|00001950| 72 6f 63 28 75 73 65 72 | 52 6f 75 74 69 6e 65 2c |roc(user|Routine,|
|00001960| 20 6e 6f 74 69 66 79 53 | 74 72 69 6e 67 48 64 6c | notifyS|tringHdl|
|00001970| 65 29 09 09 5c 0d 09 09 | 43 61 6c 6c 55 6e 69 76 |e)..\...|CallUniv|
|00001980| 65 72 73 61 6c 50 72 6f | 63 28 28 55 6e 69 76 65 |ersalPro|c((Unive|
|00001990| 72 73 61 6c 50 72 6f 63 | 50 74 72 29 28 75 73 65 |rsalProc|Ptr)(use|
|000019a0| 72 52 6f 75 74 69 6e 65 | 29 2c 20 75 70 70 44 54 |rRoutine|), uppDT|
|000019b0| 50 41 73 79 6e 63 45 72 | 72 6f 72 4e 6f 74 69 66 |PAsyncEr|rorNotif|
|000019c0| 69 63 61 74 69 6f 6e 50 | 72 6f 63 49 6e 66 6f 2c |icationP|rocInfo,|
|000019d0| 20 28 6e 6f 74 69 66 79 | 53 74 72 69 6e 67 48 64 | (notify|StringHd|
|000019e0| 6c 65 29 29 0d 23 65 6c | 73 65 0d 23 64 65 66 69 |le)).#el|se.#defi|
|000019f0| 6e 65 20 43 61 6c 6c 44 | 54 50 41 73 79 6e 63 45 |ne CallD|TPAsyncE|
|00001a00| 72 72 6f 72 4e 6f 74 69 | 66 69 63 61 74 69 6f 6e |rrorNoti|fication|
|00001a10| 50 72 6f 63 28 75 73 65 | 72 52 6f 75 74 69 6e 65 |Proc(use|rRoutine|
|00001a20| 2c 20 6e 6f 74 69 66 79 | 53 74 72 69 6e 67 48 64 |, notify|StringHd|
|00001a30| 6c 65 29 09 09 5c 0d 09 | 09 28 2a 28 75 73 65 72 |le)..\..|.(*(user|
|00001a40| 52 6f 75 74 69 6e 65 29 | 29 28 28 6e 6f 74 69 66 |Routine)|)((notif|
|00001a50| 79 53 74 72 69 6e 67 48 | 64 6c 65 29 29 0d 23 65 |yStringH|dle)).#e|
|00001a60| 6e 64 69 66 0d 0d 2f 2f | 20 44 54 50 45 6e 64 4e |ndif..//| DTPEndN|
|00001a70| 6f 74 69 66 69 63 61 74 | 69 6f 6e 55 50 50 0d 74 |otificat|ionUPP.t|
|00001a80| 79 70 65 64 65 66 20 70 | 61 73 63 61 6c 20 76 6f |ypedef p|ascal vo|
|00001a90| 69 64 20 28 2a 44 54 50 | 45 6e 64 4e 6f 74 69 66 |id (*DTP|EndNotif|
|00001aa0| 69 63 61 74 69 6f 6e 50 | 72 6f 63 50 74 72 29 20 |icationP|rocPtr) |
|00001ab0| 28 29 3b 0d 0d 23 69 66 | 20 47 45 4e 45 52 41 54 |();..#if| GENERAT|
|00001ac0| 49 4e 47 43 46 4d 0d 74 | 79 70 65 64 65 66 20 55 |INGCFM.t|ypedef U|
|00001ad0| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 50 74 72 20 |niversal|ProcPtr |
|00001ae0| 44 54 50 45 6e 64 4e 6f | 74 69 66 69 63 61 74 69 |DTPEndNo|tificati|
|00001af0| 6f 6e 55 50 50 3b 0d 23 | 65 6c 73 65 0d 74 79 70 |onUPP;.#|else.typ|
|00001b00| 65 64 65 66 20 44 54 50 | 45 6e 64 4e 6f 74 69 66 |edef DTP|EndNotif|
|00001b10| 69 63 61 74 69 6f 6e 50 | 72 6f 63 50 74 72 20 44 |icationP|rocPtr D|
|00001b20| 54 50 45 6e 64 4e 6f 74 | 69 66 69 63 61 74 69 6f |TPEndNot|ificatio|
|00001b30| 6e 55 50 50 3b 0d 23 65 | 6e 64 69 66 0d 0d 65 6e |nUPP;.#e|ndif..en|
|00001b40| 75 6d 0d 7b 0d 09 75 70 | 70 44 54 50 45 6e 64 4e |um.{..up|pDTPEndN|
|00001b50| 6f 74 69 66 69 63 61 74 | 69 6f 6e 50 72 6f 63 49 |otificat|ionProcI|
|00001b60| 6e 66 6f 20 3d 20 6b 50 | 61 73 63 61 6c 53 74 61 |nfo = kP|ascalSta|
|00001b70| 63 6b 42 61 73 65 64 0d | 7d 3b 0d 0d 23 69 66 20 |ckBased.|};..#if |
|00001b80| 47 45 4e 45 52 41 54 49 | 4e 47 43 46 4d 0d 23 64 |GENERATI|NGCFM.#d|
|00001b90| 65 66 69 6e 65 20 4e 65 | 77 44 54 50 45 6e 64 4e |efine Ne|wDTPEndN|
|00001ba0| 6f 74 69 66 69 63 61 74 | 69 6f 6e 50 72 6f 63 28 |otificat|ionProc(|
|00001bb0| 75 73 65 72 52 6f 75 74 | 69 6e 65 29 09 09 5c 0d |userRout|ine)..\.|
|00001bc0| 09 09 28 44 54 50 45 6e | 64 4e 6f 74 69 66 69 63 |..(DTPEn|dNotific|
|00001bd0| 61 74 69 6f 6e 55 50 50 | 29 20 4e 65 77 52 6f 75 |ationUPP|) NewRou|
|00001be0| 74 69 6e 65 44 65 73 63 | 72 69 70 74 6f 72 28 28 |tineDesc|riptor((|
|00001bf0| 50 72 6f 63 50 74 72 29 | 28 75 73 65 72 52 6f 75 |ProcPtr)|(userRou|
|00001c00| 74 69 6e 65 29 2c 20 75 | 70 70 44 54 50 45 6e 64 |tine), u|ppDTPEnd|
|00001c10| 4e 6f 74 69 66 69 63 61 | 74 69 6f 6e 50 72 6f 63 |Notifica|tionProc|
|00001c20| 49 6e 66 6f 2c 20 47 65 | 74 43 75 72 72 65 6e 74 |Info, Ge|tCurrent|
|00001c30| 49 53 41 28 29 29 0d 23 | 65 6c 73 65 0d 23 64 65 |ISA()).#|else.#de|
|00001c40| 66 69 6e 65 20 4e 65 77 | 44 54 50 45 6e 64 4e 6f |fine New|DTPEndNo|
|00001c50| 74 69 66 69 63 61 74 69 | 6f 6e 50 72 6f 63 28 75 |tificati|onProc(u|
|00001c60| 73 65 72 52 6f 75 74 69 | 6e 65 29 09 09 5c 0d 09 |serRouti|ne)..\..|
|00001c70| 09 28 44 54 50 45 6e 64 | 4e 6f 74 69 66 69 63 61 |.(DTPEnd|Notifica|
|00001c80| 74 69 6f 6e 55 50 50 29 | 28 75 73 65 72 52 6f 75 |tionUPP)|(userRou|
|00001c90| 74 69 6e 65 29 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |tine).#e|ndif..#i|
|00001ca0| 66 20 47 45 4e 45 52 41 | 54 49 4e 47 43 46 4d 0d |f GENERA|TINGCFM.|
|00001cb0| 23 64 65 66 69 6e 65 20 | 43 61 6c 6c 44 54 50 45 |#define |CallDTPE|
|00001cc0| 6e 64 4e 6f 74 69 66 69 | 63 61 74 69 6f 6e 50 72 |ndNotifi|cationPr|
|00001cd0| 6f 63 28 75 73 65 72 52 | 6f 75 74 69 6e 65 29 09 |oc(userR|outine).|
|00001ce0| 09 5c 0d 09 09 43 61 6c | 6c 55 6e 69 76 65 72 73 |.\...Cal|lUnivers|
|00001cf0| 61 6c 50 72 6f 63 28 28 | 55 6e 69 76 65 72 73 61 |alProc((|Universa|
|00001d00| 6c 50 72 6f 63 50 74 72 | 29 28 75 73 65 72 52 6f |lProcPtr|)(userRo|
|00001d10| 75 74 69 6e 65 29 2c 20 | 75 70 70 44 54 50 45 6e |utine), |uppDTPEn|
|00001d20| 64 4e 6f 74 69 66 69 63 | 61 74 69 6f 6e 50 72 6f |dNotific|ationPro|
|00001d30| 63 49 6e 66 6f 29 0d 23 | 65 6c 73 65 0d 23 64 65 |cInfo).#|else.#de|
|00001d40| 66 69 6e 65 20 43 61 6c | 6c 44 54 50 45 6e 64 4e |fine Cal|lDTPEndN|
|00001d50| 6f 74 69 66 69 63 61 74 | 69 6f 6e 50 72 6f 63 28 |otificat|ionProc(|
|00001d60| 75 73 65 72 52 6f 75 74 | 69 6e 65 29 09 09 5c 0d |userRout|ine)..\.|
|00001d70| 09 09 28 2a 28 75 73 65 | 72 52 6f 75 74 69 6e 65 |..(*(use|rRoutine|
|00001d80| 29 29 28 29 0d 23 65 6e | 64 69 66 0d 0d 2f 2f 20 |))().#en|dif..// |
|00001d90| 44 54 50 49 6e 46 6f 72 | 65 67 72 6f 75 6e 64 55 |DTPInFor|egroundU|
|00001da0| 50 50 0d 74 79 70 65 64 | 65 66 20 70 61 73 63 61 |PP.typed|ef pasca|
|00001db0| 6c 20 42 6f 6f 6c 65 61 | 6e 20 28 2a 44 54 50 49 |l Boolea|n (*DTPI|
|00001dc0| 6e 46 6f 72 65 67 72 6f | 75 6e 64 50 72 6f 63 50 |nForegro|undProcP|
|00001dd0| 74 72 29 20 28 29 3b 0d | 0d 23 69 66 20 47 45 4e |tr) ();.|.#if GEN|
|00001de0| 45 52 41 54 49 4e 47 43 | 46 4d 0d 74 79 70 65 64 |ERATINGC|FM.typed|
|00001df0| 65 66 20 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |ef Unive|rsalProc|
|00001e00| 50 74 72 20 44 54 50 49 | 6e 46 6f 72 65 67 72 6f |Ptr DTPI|nForegro|
|00001e10| 75 6e 64 55 50 50 3b 0d | 23 65 6c 73 65 0d 74 79 |undUPP;.|#else.ty|
|00001e20| 70 65 64 65 66 20 44 54 | 50 49 6e 46 6f 72 65 67 |pedef DT|PInForeg|
|00001e30| 72 6f 75 6e 64 50 72 6f | 63 50 74 72 20 44 54 50 |roundPro|cPtr DTP|
|00001e40| 49 6e 46 6f 72 65 67 72 | 6f 75 6e 64 55 50 50 3b |InForegr|oundUPP;|
|00001e50| 0d 23 65 6e 64 69 66 0d | 0d 65 6e 75 6d 0d 7b 0d |.#endif.|.enum.{.|
|00001e60| 09 75 70 70 44 54 50 49 | 6e 46 6f 72 65 67 72 6f |.uppDTPI|nForegro|
|00001e70| 75 6e 64 50 72 6f 63 49 | 6e 66 6f 20 3d 20 6b 50 |undProcI|nfo = kP|
|00001e80| 61 73 63 61 6c 53 74 61 | 63 6b 42 61 73 65 64 0d |ascalSta|ckBased.|
|00001e90| 09 09 20 7c 20 52 45 53 | 55 4c 54 5f 53 49 5a 45 |.. | RES|ULT_SIZE|
|00001ea0| 28 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f |(SIZE_CO|DE(sizeo|
|00001eb0| 66 28 42 6f 6f 6c 65 61 | 6e 29 29 29 0d 7d 3b 0d |f(Boolea|n))).};.|
|00001ec0| 0d 23 69 66 20 47 45 4e | 45 52 41 54 49 4e 47 43 |.#if GEN|ERATINGC|
|00001ed0| 46 4d 0d 23 64 65 66 69 | 6e 65 20 4e 65 77 44 54 |FM.#defi|ne NewDT|
|00001ee0| 50 49 6e 46 6f 72 65 67 | 72 6f 75 6e 64 50 72 6f |PInForeg|roundPro|
|00001ef0| 63 28 75 73 65 72 52 6f | 75 74 69 6e 65 29 09 09 |c(userRo|utine)..|
|00001f00| 5c 0d 09 09 28 44 54 50 | 49 6e 46 6f 72 65 67 72 |\...(DTP|InForegr|
|00001f10| 6f 75 6e 64 55 50 50 29 | 20 4e 65 77 52 6f 75 74 |oundUPP)| NewRout|
|00001f20| 69 6e 65 44 65 73 63 72 | 69 70 74 6f 72 28 28 50 |ineDescr|iptor((P|
|00001f30| 72 6f 63 50 74 72 29 28 | 75 73 65 72 52 6f 75 74 |rocPtr)(|userRout|
|00001f40| 69 6e 65 29 2c 20 75 70 | 70 44 54 50 49 6e 46 6f |ine), up|pDTPInFo|
|00001f50| 72 65 67 72 6f 75 6e 64 | 50 72 6f 63 49 6e 66 6f |reground|ProcInfo|
|00001f60| 2c 20 47 65 74 43 75 72 | 72 65 6e 74 49 53 41 28 |, GetCur|rentISA(|
|00001f70| 29 29 0d 23 65 6c 73 65 | 0d 23 64 65 66 69 6e 65 |)).#else|.#define|
|00001f80| 20 4e 65 77 44 54 50 49 | 6e 46 6f 72 65 67 72 6f | NewDTPI|nForegro|
|00001f90| 75 6e 64 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |undProc(|userRout|
|00001fa0| 69 6e 65 29 09 09 5c 0d | 09 09 28 44 54 50 49 6e |ine)..\.|..(DTPIn|
|00001fb0| 46 6f 72 65 67 72 6f 75 | 6e 64 55 50 50 29 28 75 |Foregrou|ndUPP)(u|
|00001fc0| 73 65 72 52 6f 75 74 69 | 6e 65 29 0d 23 65 6e 64 |serRouti|ne).#end|
|00001fd0| 69 66 0d 0d 23 69 66 20 | 47 45 4e 45 52 41 54 49 |if..#if |GENERATI|
|00001fe0| 4e 47 43 46 4d 0d 23 64 | 65 66 69 6e 65 20 43 61 |NGCFM.#d|efine Ca|
|00001ff0| 6c 6c 44 54 50 49 6e 46 | 6f 72 65 67 72 6f 75 6e |llDTPInF|oregroun|
|00002000| 64 50 72 6f 63 28 75 73 | 65 72 52 6f 75 74 69 6e |dProc(us|erRoutin|
|00002010| 65 29 09 09 5c 0d 09 09 | 43 61 6c 6c 55 6e 69 76 |e)..\...|CallUniv|
|00002020| 65 72 73 61 6c 50 72 6f | 63 28 28 55 6e 69 76 65 |ersalPro|c((Unive|
|00002030| 72 73 61 6c 50 72 6f 63 | 50 74 72 29 28 75 73 65 |rsalProc|Ptr)(use|
|00002040| 72 52 6f 75 74 69 6e 65 | 29 2c 20 75 70 70 44 54 |rRoutine|), uppDT|
|00002050| 50 49 6e 46 6f 72 65 67 | 72 6f 75 6e 64 50 72 6f |PInForeg|roundPro|
|00002060| 63 49 6e 66 6f 29 0d 23 | 65 6c 73 65 0d 23 64 65 |cInfo).#|else.#de|
|00002070| 66 69 6e 65 20 43 61 6c | 6c 44 54 50 49 6e 46 6f |fine Cal|lDTPInFo|
|00002080| 72 65 67 72 6f 75 6e 64 | 50 72 6f 63 28 75 73 65 |reground|Proc(use|
|00002090| 72 52 6f 75 74 69 6e 65 | 29 09 09 5c 0d 09 09 28 |rRoutine|)..\...(|
|000020a0| 2a 28 75 73 65 72 52 6f | 75 74 69 6e 65 29 29 28 |*(userRo|utine))(|
|000020b0| 29 0d 23 65 6e 64 69 66 | 0d 0d 2f 2f 20 44 54 50 |).#endif|..// DTP|
|000020c0| 53 74 61 74 75 73 4d 65 | 73 73 61 67 65 55 50 50 |StatusMe|ssageUPP|
|000020d0| 0d 74 79 70 65 64 65 66 | 20 70 61 73 63 61 6c 20 |.typedef| pascal |
|000020e0| 76 6f 69 64 20 28 2a 44 | 54 50 53 74 61 74 75 73 |void (*D|TPStatus|
|000020f0| 4d 65 73 73 61 67 65 50 | 72 6f 63 50 74 72 29 20 |MessageP|rocPtr) |
|00002100| 28 53 74 72 69 6e 67 48 | 61 6e 64 6c 65 20 73 74 |(StringH|andle st|
|00002110| 72 69 6e 67 29 3b 0d 0d | 23 69 66 20 47 45 4e 45 |ring);..|#if GENE|
|00002120| 52 41 54 49 4e 47 43 46 | 4d 0d 74 79 70 65 64 65 |RATINGCF|M.typede|
|00002130| 66 20 55 6e 69 76 65 72 | 73 61 6c 50 72 6f 63 50 |f Univer|salProcP|
|00002140| 74 72 20 44 54 50 53 74 | 61 74 75 73 4d 65 73 73 |tr DTPSt|atusMess|
|00002150| 61 67 65 55 50 50 3b 0d | 23 65 6c 73 65 0d 74 79 |ageUPP;.|#else.ty|
|00002160| 70 65 64 65 66 20 44 54 | 50 53 74 61 74 75 73 4d |pedef DT|PStatusM|
|00002170| 65 73 73 61 67 65 50 72 | 6f 63 50 74 72 20 44 54 |essagePr|ocPtr DT|
|00002180| 50 53 74 61 74 75 73 4d | 65 73 73 61 67 65 55 50 |PStatusM|essageUP|
|00002190| 50 3b 0d 23 65 6e 64 69 | 66 0d 0d 65 6e 75 6d 0d |P;.#endi|f..enum.|
|000021a0| 7b 0d 09 75 70 70 44 54 | 50 53 74 61 74 75 73 4d |{..uppDT|PStatusM|
|000021b0| 65 73 73 61 67 65 50 72 | 6f 63 49 6e 66 6f 20 3d |essagePr|ocInfo =|
|000021c0| 20 6b 50 61 73 63 61 6c | 53 74 61 63 6b 42 61 73 | kPascal|StackBas|
|000021d0| 65 64 0d 09 09 20 7c 20 | 53 54 41 43 4b 5f 52 4f |ed... | |STACK_RO|
|000021e0| 55 54 49 4e 45 5f 50 41 | 52 41 4d 45 54 45 52 28 |UTINE_PA|RAMETER(|
|000021f0| 31 2c 20 53 49 5a 45 5f | 43 4f 44 45 28 73 69 7a |1, SIZE_|CODE(siz|
|00002200| 65 6f 66 28 53 74 72 69 | 6e 67 48 61 6e 64 6c 65 |eof(Stri|ngHandle|
|00002210| 29 29 29 0d 7d 3b 0d 0d | 23 69 66 20 47 45 4e 45 |))).};..|#if GENE|
|00002220| 52 41 54 49 4e 47 43 46 | 4d 0d 23 64 65 66 69 6e |RATINGCF|M.#defin|
|00002230| 65 20 4e 65 77 44 54 50 | 53 74 61 74 75 73 4d 65 |e NewDTP|StatusMe|
|00002240| 73 73 61 67 65 50 72 6f | 63 28 75 73 65 72 52 6f |ssagePro|c(userRo|
|00002250| 75 74 69 6e 65 29 09 09 | 5c 0d 09 09 28 44 54 50 |utine)..|\...(DTP|
|00002260| 53 74 61 74 75 73 4d 65 | 73 73 61 67 65 55 50 50 |StatusMe|ssageUPP|
|00002270| 29 20 4e 65 77 52 6f 75 | 74 69 6e 65 44 65 73 63 |) NewRou|tineDesc|
|00002280| 72 69 70 74 6f 72 28 28 | 50 72 6f 63 50 74 72 29 |riptor((|ProcPtr)|
|00002290| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 2c 20 75 |(userRou|tine), u|
|000022a0| 70 70 44 54 50 53 74 61 | 74 75 73 4d 65 73 73 61 |ppDTPSta|tusMessa|
|000022b0| 67 65 50 72 6f 63 49 6e | 66 6f 2c 20 47 65 74 43 |geProcIn|fo, GetC|
|000022c0| 75 72 72 65 6e 74 49 53 | 41 28 29 29 0d 23 65 6c |urrentIS|A()).#el|
|000022d0| 73 65 0d 23 64 65 66 69 | 6e 65 20 4e 65 77 44 54 |se.#defi|ne NewDT|
|000022e0| 50 53 74 61 74 75 73 4d | 65 73 73 61 67 65 50 72 |PStatusM|essagePr|
|000022f0| 6f 63 28 75 73 65 72 52 | 6f 75 74 69 6e 65 29 09 |oc(userR|outine).|
|00002300| 09 5c 0d 09 09 28 44 54 | 50 53 74 61 74 75 73 4d |.\...(DT|PStatusM|
|00002310| 65 73 73 61 67 65 55 50 | 50 29 28 75 73 65 72 52 |essageUP|P)(userR|
|00002320| 6f 75 74 69 6e 65 29 0d | 23 65 6e 64 69 66 0d 0d |outine).|#endif..|
|00002330| 23 69 66 20 47 45 4e 45 | 52 41 54 49 4e 47 43 46 |#if GENE|RATINGCF|
|00002340| 4d 0d 23 64 65 66 69 6e | 65 20 43 61 6c 6c 44 54 |M.#defin|e CallDT|
|00002350| 50 53 74 61 74 75 73 4d | 65 73 73 61 67 65 50 72 |PStatusM|essagePr|
|00002360| 6f 63 28 75 73 65 72 52 | 6f 75 74 69 6e 65 2c 20 |oc(userR|outine, |
|00002370| 73 74 61 74 75 73 53 74 | 72 69 6e 67 48 64 6c 65 |statusSt|ringHdle|
|00002380| 29 09 09 5c 0d 09 09 43 | 61 6c 6c 55 6e 69 76 65 |)..\...C|allUnive|
|00002390| 72 73 61 6c 50 72 6f 63 | 28 28 55 6e 69 76 65 72 |rsalProc|((Univer|
|000023a0| 73 61 6c 50 72 6f 63 50 | 74 72 29 28 75 73 65 72 |salProcP|tr)(user|
|000023b0| 52 6f 75 74 69 6e 65 29 | 2c 20 75 70 70 44 54 50 |Routine)|, uppDTP|
|000023c0| 53 74 61 74 75 73 4d 65 | 73 73 61 67 65 50 72 6f |StatusMe|ssagePro|
|000023d0| 63 49 6e 66 6f 2c 20 28 | 6e 6f 74 69 66 79 53 74 |cInfo, (|notifySt|
|000023e0| 72 69 6e 67 48 64 6c 65 | 29 29 0d 23 65 6c 73 65 |ringHdle|)).#else|
|000023f0| 0d 23 64 65 66 69 6e 65 | 20 43 61 6c 6c 44 54 50 |.#define| CallDTP|
|00002400| 53 74 61 74 75 73 4d 65 | 73 73 61 67 65 50 72 6f |StatusMe|ssagePro|
|00002410| 63 28 75 73 65 72 52 6f | 75 74 69 6e 65 2c 20 73 |c(userRo|utine, s|
|00002420| 74 61 74 75 73 53 74 72 | 69 6e 67 48 64 6c 65 29 |tatusStr|ingHdle)|
|00002430| 09 09 5c 0d 09 09 28 2a | 28 75 73 65 72 52 6f 75 |..\...(*|(userRou|
|00002440| 74 69 6e 65 29 29 28 28 | 6e 6f 74 69 66 79 53 74 |tine))((|notifySt|
|00002450| 72 69 6e 67 48 64 6c 65 | 29 29 0d 23 65 6e 64 69 |ringHdle|)).#endi|
|00002460| 66 0d 0d 2f 2f 20 50 72 | 47 65 6e 65 72 61 6c 20 |f..// Pr|General |
|00002470| 63 61 6c 6c 20 74 68 61 | 74 20 50 72 69 6e 74 4d |call tha|t PrintM|
|00002480| 6f 6e 69 74 6f 72 2f 44 | 65 73 6b 74 6f 70 20 50 |onitor/D|esktop P|
|00002490| 72 69 6e 74 4d 6f 6e 69 | 74 6f 72 20 75 73 65 20 |rintMoni|tor use |
|000024a0| 74 6f 20 73 65 74 20 75 | 70 20 74 68 65 20 6e 6f |to set u|p the no|
|000024b0| 74 69 66 69 63 61 74 69 | 6f 6e 20 70 72 6f 63 73 |tificati|on procs|
|000024c0| 0d 23 64 65 66 69 6e 65 | 20 6b 50 72 69 6e 74 4d |.#define| kPrintM|
|000024d0| 6f 6e 69 74 6f 72 50 72 | 47 65 6e 65 72 61 6c 20 |onitorPr|General |
|000024e0| 3d 20 2d 33 3b 0d 0d 2f | 2f 20 54 50 72 69 6e 74 |= -3;../|/ TPrint|
|000024f0| 4d 6f 6e 69 74 6f 72 50 | 72 69 6e 74 69 6e 67 44 |MonitorP|rintingD|
|00002500| 61 74 61 3a 0d 2f 2f 20 | 66 6f 72 20 63 6c 61 73 |ata:.// |for clas|
|00002510| 73 69 63 20 62 61 63 6b | 67 72 6f 75 6e 64 20 70 |sic back|ground p|
|00002520| 72 69 6e 74 69 6e 67 20 | 61 6e 64 20 64 65 73 6b |rinting |and desk|
|00002530| 74 6f 70 20 70 72 69 6e | 74 69 6e 67 20 74 68 61 |top prin|ting tha|
|00002540| 74 20 64 6f 65 73 20 6e | 6f 74 20 73 75 70 70 6f |t does n|ot suppo|
|00002550| 72 74 20 74 68 69 72 64 | 2d 70 61 72 74 79 20 64 |rt third|-party d|
|00002560| 72 69 76 65 72 73 20 0d | 74 79 70 65 64 65 66 20 |rivers .|typedef |
|00002570| 73 74 72 75 63 74 0d 7b | 0d 09 73 68 6f 72 74 09 |struct.{|..short.|
|00002580| 09 09 09 09 09 09 69 4f | 70 43 6f 64 65 3b 09 09 |......iO|pCode;..|
|00002590| 09 09 2f 2f 20 6b 50 72 | 69 6e 74 4d 6f 6e 69 74 |..// kPr|intMonit|
|000025a0| 6f 72 50 72 47 65 6e 65 | 72 61 6c 0d 09 73 68 6f |orPrGene|ral..sho|
|000025b0| 72 74 09 09 09 09 09 09 | 09 69 45 72 72 6f 72 3b |rt......|.iError;|
|000025c0| 0d 09 6c 6f 6e 67 09 09 | 09 09 09 09 09 69 52 65 |..long..|.....iRe|
|000025d0| 73 65 72 76 65 64 3b 09 | 09 09 09 2f 2f 20 30 20 |served;.|...// 0 |
|000025e0| 2d 20 63 6c 61 73 73 69 | 63 20 50 72 69 6e 74 4d |- classi|c PrintM|
|000025f0| 6f 6e 69 74 6f 72 20 69 | 73 20 72 75 6e 6e 69 6e |onitor i|s runnin|
|00002600| 67 0d 09 54 48 50 72 69 | 6e 74 09 09 09 09 09 09 |g..THPri|nt......|
|00002610| 09 68 50 72 69 6e 74 3b | 0d 09 73 68 6f 72 74 09 |.hPrint;|..short.|
|00002620| 09 09 09 09 09 09 6e 6f | 50 72 6f 63 73 3b 09 09 |......no|Procs;..|
|00002630| 09 09 2f 2f 20 6e 75 6d | 62 65 72 20 6f 66 20 6e |..// num|ber of n|
|00002640| 6f 74 69 66 69 63 61 74 | 69 6f 6e 20 70 72 6f 63 |otificat|ion proc|
|00002650| 73 0d 09 6c 6f 6e 67 09 | 09 09 09 09 09 09 69 52 |s..long.|......iR|
|00002660| 65 73 65 72 76 65 64 32 | 3b 0d 09 44 54 50 41 73 |eserved2|;..DTPAs|
|00002670| 79 6e 63 45 72 72 6f 72 | 4e 6f 74 69 66 69 63 61 |yncError|Notifica|
|00002680| 74 69 6f 6e 55 50 50 09 | 70 41 73 79 6e 63 4e 6f |tionUPP.|pAsyncNo|
|00002690| 74 69 66 69 63 61 74 69 | 6f 6e 50 72 6f 63 3b 09 |tificati|onProc;.|
|000026a0| 2f 2f 20 55 50 50 20 74 | 6f 20 70 75 74 20 75 70 |// UPP t|o put up|
|000026b0| 20 61 20 6e 6f 74 69 66 | 69 63 61 74 69 6f 6e 0d | a notif|ication.|
|000026c0| 09 44 54 50 45 6e 64 4e | 6f 74 69 66 69 63 61 74 |.DTPEndN|otificat|
|000026d0| 69 6f 6e 55 50 50 09 09 | 09 70 41 73 79 6e 63 45 |ionUPP..|.pAsyncE|
|000026e0| 6e 64 6e 6f 74 69 66 79 | 50 72 6f 63 3b 09 2f 2f |ndnotify|Proc;.//|
|000026f0| 20 55 50 50 20 74 6f 20 | 74 61 6b 65 20 64 6f 77 | UPP to |take dow|
|00002700| 6e 20 74 68 65 20 6e 6f | 74 69 66 69 63 61 74 69 |n the no|tificati|
|00002710| 6f 6e 0d 09 44 54 50 49 | 6e 46 6f 72 65 67 72 6f |on..DTPI|nForegro|
|00002720| 75 6e 64 55 50 50 09 09 | 09 09 70 44 54 50 49 6e |undUPP..|..pDTPIn|
|00002730| 46 6f 72 65 67 72 6f 75 | 6e 64 50 72 6f 63 3b 09 |Foregrou|ndProc;.|
|00002740| 2f 2f 20 55 50 50 20 74 | 6f 20 63 68 65 63 6b 20 |// UPP t|o check |
|00002750| 69 66 20 50 72 69 6e 74 | 4d 6f 6e 69 74 6f 72 20 |if Print|Monitor |
|00002760| 69 73 20 69 6e 20 66 6f | 72 65 67 72 6f 75 6e 64 |is in fo|reground|
|00002770| 0d 7d 20 54 50 72 69 6e | 74 4d 6f 6e 69 74 6f 72 |.} TPrin|tMonitor|
|00002780| 50 72 69 6e 74 69 6e 67 | 44 61 74 61 3b 0d 0d 2f |Printing|Data;../|
|00002790| 2f 20 54 44 65 73 6b 74 | 6f 70 50 72 69 6e 74 4d |/ TDeskt|opPrintM|
|000027a0| 6f 6e 69 74 6f 72 50 72 | 69 6e 74 69 6e 67 44 61 |onitorPr|intingDa|
|000027b0| 74 61 3a 0d 2f 2f 20 66 | 6f 72 20 64 65 73 6b 74 |ta:.// f|or deskt|
|000027c0| 6f 70 20 70 72 69 6e 74 | 69 6e 67 20 74 68 61 74 |op print|ing that|
|000027d0| 20 73 75 70 70 6f 72 74 | 73 20 74 68 69 72 64 2d | support|s third-|
|000027e0| 70 61 72 74 79 20 70 72 | 69 6e 74 20 64 72 69 76 |party pr|int driv|
|000027f0| 65 72 73 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |ers.type|def stru|
|00002800| 63 74 0d 7b 0d 09 73 68 | 6f 72 74 09 09 09 09 09 |ct.{..sh|ort.....|
|00002810| 09 09 69 4f 70 43 6f 64 | 65 3b 09 09 09 09 2f 2f |..iOpCod|e;....//|
|00002820| 20 6b 50 72 69 6e 74 4d | 6f 6e 69 74 6f 72 50 72 | kPrintM|onitorPr|
|00002830| 47 65 6e 65 72 61 6c 0d | 09 73 68 6f 72 74 09 09 |General.|.short..|
|00002840| 09 09 09 09 09 69 45 72 | 72 6f 72 3b 0d 09 6c 6f |.....iEr|ror;..lo|
|00002850| 6e 67 09 09 09 09 09 09 | 09 69 52 65 73 65 72 76 |ng......|.iReserv|
|00002860| 65 64 3b 09 09 09 09 2f | 2f 20 31 20 2d 20 44 65 |ed;..../|/ 1 - De|
|00002870| 73 6b 74 6f 70 20 50 72 | 69 6e 74 4d 6f 6e 69 74 |sktop Pr|intMonit|
|00002880| 6f 72 20 69 73 20 72 75 | 6e 6e 69 6e 67 0d 09 54 |or is ru|nning..T|
|00002890| 48 50 72 69 6e 74 09 09 | 09 09 09 09 09 68 50 72 |HPrint..|.....hPr|
|000028a0| 69 6e 74 3b 0d 09 73 68 | 6f 72 74 09 09 09 09 09 |int;..sh|ort.....|
|000028b0| 09 09 6e 6f 50 72 6f 63 | 73 3b 09 09 09 09 2f 2f |..noProc|s;....//|
|000028c0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6e 6f 74 69 66 | number |of notif|
|000028d0| 69 63 61 74 69 6f 6e 20 | 70 72 6f 63 73 0d 09 6c |ication |procs..l|
|000028e0| 6f 6e 67 09 09 09 09 09 | 09 09 69 52 65 73 65 72 |ong.....|..iReser|
|000028f0| 76 65 64 32 3b 0d 09 44 | 54 50 41 73 79 6e 63 45 |ved2;..D|TPAsyncE|
|00002900| 72 72 6f 72 4e 6f 74 69 | 66 69 63 61 74 69 6f 6e |rrorNoti|fication|
|00002910| 55 50 50 09 70 41 73 79 | 6e 63 4e 6f 74 69 66 69 |UPP.pAsy|ncNotifi|
|00002920| 63 61 74 69 6f 6e 50 72 | 6f 63 3b 09 2f 2f 20 55 |cationPr|oc;.// U|
|00002930| 50 50 20 74 6f 20 70 75 | 74 20 75 70 20 61 20 6e |PP to pu|t up a n|
|00002940| 6f 74 69 66 69 63 61 74 | 69 6f 6e 0d 09 44 54 50 |otificat|ion..DTP|
|00002950| 45 6e 64 4e 6f 74 69 66 | 69 63 61 74 69 6f 6e 55 |EndNotif|icationU|
|00002960| 50 50 09 09 09 70 41 73 | 79 6e 63 45 6e 64 6e 6f |PP...pAs|yncEndno|
|00002970| 74 69 66 79 50 72 6f 63 | 3b 09 2f 2f 20 55 50 50 |tifyProc|;.// UPP|
|00002980| 20 74 6f 20 74 61 6b 65 | 20 64 6f 77 6e 20 74 68 | to take| down th|
|00002990| 65 20 6e 6f 74 69 66 69 | 63 61 74 69 6f 6e 0d 09 |e notifi|cation..|
|000029a0| 44 54 50 49 6e 46 6f 72 | 65 67 72 6f 75 6e 64 55 |DTPInFor|egroundU|
|000029b0| 50 50 09 09 09 09 70 49 | 6e 46 6f 72 65 67 72 6f |PP....pI|nForegro|
|000029c0| 75 6e 64 50 72 6f 63 3b | 09 09 2f 2f 20 55 50 50 |undProc;|..// UPP|
|000029d0| 20 74 6f 20 63 68 65 63 | 6b 20 69 66 20 64 65 73 | to chec|k if des|
|000029e0| 6b 74 6f 70 20 70 72 69 | 6e 74 69 6e 67 20 69 73 |ktop pri|nting is|
|000029f0| 20 69 6e 20 66 6f 72 65 | 67 72 6f 75 6e 64 0d 09 | in fore|ground..|
|00002a00| 44 54 50 53 74 61 74 75 | 73 4d 65 73 73 61 67 65 |DTPStatu|sMessage|
|00002a10| 55 50 50 09 09 09 09 70 | 53 74 61 74 75 73 4d 65 |UPP....p|StatusMe|
|00002a20| 73 73 61 67 65 50 72 6f | 63 3b 09 09 2f 2f 20 55 |ssagePro|c;..// U|
|00002a30| 50 50 20 74 6f 20 75 70 | 64 61 74 65 20 74 68 65 |PP to up|date the|
|00002a40| 20 70 72 69 6e 74 69 6e | 67 20 73 74 61 74 75 73 | printin|g status|
|00002a50| 20 6d 65 73 73 61 67 65 | 20 69 6e 20 74 68 65 20 | message| in the |
|00002a60| 64 65 73 6b 74 6f 70 20 | 70 72 69 6e 74 65 72 20 |desktop |printer |
|00002a70| 77 69 6e 64 6f 77 0d 7d | 20 54 44 65 73 6b 74 6f |window.}| TDeskto|
|00002a80| 70 50 72 69 6e 74 4d 6f | 6e 69 74 6f 72 50 72 69 |pPrintMo|nitorPri|
|00002a90| 6e 74 69 6e 67 44 61 74 | 61 3b 0d 0d 2f 2f 0d 2f |ntingDat|a;..//./|
|00002aa0| 2f 20 64 65 73 6b 74 6f | 70 20 70 72 69 6e 74 69 |/ deskto|p printi|
|00002ab0| 6e 67 20 65 72 72 6f 72 | 20 63 6f 64 65 73 0d 2f |ng error| codes./|
|00002ac0| 2f 0d 23 64 65 66 69 6e | 65 20 6b 44 54 50 48 6f |/.#defin|e kDTPHo|
|00002ad0| 6c 64 4a 6f 62 45 72 72 | 09 09 2d 34 32 30 30 0d |ldJobErr|..-4200.|
|00002ae0| 23 64 65 66 69 6e 65 20 | 6b 44 54 50 53 74 6f 70 |#define |kDTPStop|
|00002af0| 51 75 65 75 65 45 72 72 | 09 2d 34 32 30 31 0d 23 |QueueErr|.-4201.#|
|00002b00| 64 65 66 69 6e 65 20 6b | 44 54 50 54 72 79 41 67 |define k|DTPTryAg|
|00002b10| 61 69 6e 45 72 72 09 09 | 2d 34 32 30 32 0d 23 64 |ainErr..|-4202.#d|
|00002b20| 65 66 69 6e 65 20 6b 44 | 54 50 41 62 6f 72 74 4a |efine kD|TPAbortJ|
|00002b30| 6f 62 45 72 72 09 09 31 | 32 38 0d 0d 2f 2f 0d 2f |obErr..1|28..//./|
|00002b40| 2f 20 53 70 6f 6f 6c 20 | 66 69 6c 65 20 64 61 74 |/ Spool |file dat|
|00002b50| 61 0d 2f 2f 0d 0d 2f 2f | 20 73 70 6f 6f 6c 20 66 |a.//..//| spool f|
|00002b60| 69 6c 65 20 64 61 74 61 | 20 66 6f 72 6b 0d 74 79 |ile data| fork.ty|
|00002b70| 70 65 64 65 66 20 73 74 | 72 75 63 74 0d 7b 0d 09 |pedef st|ruct.{..|
|00002b80| 73 68 6f 72 74 09 76 65 | 72 73 69 6f 6e 3b 09 09 |short.ve|rsion;..|
|00002b90| 2f 2f 20 73 68 6f 75 6c | 64 20 61 6c 77 61 79 73 |// shoul|d always|
|00002ba0| 20 62 65 20 31 0d 09 6c | 6f 6e 67 09 66 69 6c 65 | be 1..l|ong.file|
|00002bb0| 4c 65 6e 3b 09 09 2f 2f | 20 6c 65 6e 67 74 68 20 |Len;..//| length |
|00002bc0| 6f 66 20 74 68 65 20 73 | 70 6f 6f 6c 20 66 69 6c |of the s|pool fil|
|00002bd0| 65 20 69 6e 63 6c 75 64 | 69 6e 67 20 74 68 65 20 |e includ|ing the |
|00002be0| 73 70 6f 6f 6c 20 66 69 | 6c 65 20 68 65 61 64 65 |spool fi|le heade|
|00002bf0| 72 0d 09 6c 6f 6e 67 09 | 66 69 6c 65 46 6c 61 67 |r..long.|fileFlag|
|00002c00| 73 3b 20 09 09 2f 2f 20 | 73 68 6f 75 6c 64 20 61 |s; ..// |should a|
|00002c10| 6c 77 61 79 73 20 62 65 | 20 30 0d 09 73 68 6f 72 |lways be| 0..shor|
|00002c20| 74 09 6e 75 6d 50 61 67 | 65 73 3b 09 09 2f 2f 20 |t.numPag|es;..// |
|00002c30| 74 6f 74 61 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 |total nu|mber of |
|00002c40| 70 61 67 65 73 20 69 6e | 20 74 68 65 20 73 70 6f |pages in| the spo|
|00002c50| 6f 6c 20 66 69 6c 65 0d | 09 54 50 72 69 6e 74 09 |ol file.|.TPrint.|
|00002c60| 70 72 69 6e 74 52 65 63 | 6f 72 64 3b 09 2f 2f 20 |printRec|ord;.// |
|00002c70| 75 73 65 64 20 6f 6e 6c | 79 20 69 66 20 50 52 45 |used onl|y if PRE|
|00002c80| 43 20 33 20 63 61 6e 27 | 74 20 62 65 20 72 65 61 |C 3 can'|t be rea|
|00002c90| 64 0d 7d 53 70 6f 6f 6c | 46 69 6c 65 48 65 61 64 |d.}Spool|FileHead|
|00002ca0| 65 72 2c 20 2a 53 70 6f | 6f 6c 46 69 6c 65 48 65 |er, *Spo|olFileHe|
|00002cb0| 61 64 65 72 50 74 72 2c | 20 2a 2a 53 70 6f 6f 6c |aderPtr,| **Spool|
|00002cc0| 46 69 6c 65 48 65 61 64 | 65 72 48 61 6e 64 6c 65 |FileHead|erHandle|
|00002cd0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|00002ce0| 74 0d 7b 0d 09 6c 6f 6e | 67 09 70 69 63 74 46 6c |t.{..lon|g.pictFl|
|00002cf0| 61 67 73 3b 09 09 2f 2f | 20 73 68 6f 75 6c 64 20 |ags;..//| should |
|00002d00| 61 6c 77 61 79 73 20 62 | 65 20 30 0d 09 50 69 63 |always b|e 0..Pic|
|00002d10| 74 75 72 65 09 74 68 65 | 50 69 63 74 3b 20 09 09 |ture.the|Pict; ..|
|00002d20| 2f 2f 20 76 61 72 69 61 | 62 6c 65 20 6c 65 6e 67 |// varia|ble leng|
|00002d30| 74 68 0d 09 6c 6f 6e 67 | 09 70 61 67 65 4f 66 66 |th..long|.pageOff|
|00002d40| 73 65 74 3b 20 09 2f 2f | 20 6f 66 66 73 65 74 20 |set; .//| offset |
|00002d50| 74 6f 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |to the b|eginning|
|00002d60| 20 6f 66 20 74 68 69 73 | 20 70 61 67 65 27 73 20 | of this| page's |
|00002d70| 50 49 43 54 0d 7d 20 53 | 70 6f 6f 6c 50 61 67 65 |PICT.} S|poolPage|
|00002d80| 3b 0d 0d 2f 2f 20 73 70 | 6f 6f 6c 20 66 69 6c 65 |;..// sp|ool file|
|00002d90| 20 72 65 73 6f 75 72 63 | 65 20 66 6f 72 6b 0d 2f | resourc|e fork./|
|00002da0| 2f 20 50 52 45 43 20 31 | 32 36 0d 74 79 70 65 64 |/ PREC 1|26.typed|
|00002db0| 65 66 20 73 74 72 75 63 | 74 0d 7b 0d 09 73 68 6f |ef struc|t.{..sho|
|00002dc0| 72 74 09 76 65 72 73 69 | 6f 6e 3b 09 09 2f 2f 20 |rt.versi|on;..// |
|00002dd0| 61 6c 77 61 79 73 20 31 | 0d 09 73 68 6f 72 74 09 |always 1|..short.|
|00002de0| 66 6c 61 67 73 3b 09 09 | 09 2f 2f 20 61 6c 77 61 |flags;..|.// alwa|
|00002df0| 79 73 20 30 0d 09 73 68 | 6f 72 74 09 6e 75 6d 50 |ys 0..sh|ort.numP|
|00002e00| 61 67 65 73 3b 20 09 09 | 2f 2f 20 74 6f 74 61 6c |ages; ..|// total|
|00002e10| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 61 67 65 73 | number |of pages|
|00002e20| 20 69 6e 20 74 68 65 20 | 73 70 6f 6f 6c 20 66 69 | in the |spool fi|
|00002e30| 6c 65 0d 09 73 68 6f 72 | 74 09 6e 75 6d 43 6f 70 |le..shor|t.numCop|
|00002e40| 69 65 73 3b 09 09 2f 2f | 20 74 6f 74 61 6c 20 6e |ies;..//| total n|
|00002e50| 75 6d 62 65 72 20 6f 66 | 20 63 6f 70 69 65 73 20 |umber of| copies |
|00002e60| 66 6f 72 20 74 68 65 20 | 73 70 6f 6f 6c 20 66 69 |for the |spool fi|
|00002e70| 6c 65 0d 09 4f 53 54 79 | 70 65 09 63 72 65 61 74 |le..OSTy|pe.creat|
|00002e80| 6f 72 3b 09 09 2f 2f 20 | 74 68 65 20 63 72 65 61 |or;..// |the crea|
|00002e90| 74 6f 72 20 74 79 70 65 | 20 6f 66 20 74 68 65 20 |tor type| of the |
|00002ea0| 70 72 69 6e 74 20 64 72 | 69 76 65 72 20 74 68 61 |print dr|iver tha|
|00002eb0| 74 20 63 72 65 61 74 65 | 73 20 74 68 65 20 73 70 |t create|s the sp|
|00002ec0| 6f 6f 6c 20 66 69 6c 65 | 0d 09 53 74 72 33 31 09 |ool file|..Str31.|
|00002ed0| 61 70 70 4e 61 6d 65 3b | 09 09 2f 2f 20 74 68 65 |appName;|..// the|
|00002ee0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 61 70 70 | name of| the app|
|00002ef0| 6c 69 63 61 74 69 6f 6e | 20 75 73 65 64 20 74 6f |lication| used to|
|00002f00| 20 63 72 65 61 74 65 20 | 74 68 65 20 73 70 6f 6f | create |the spoo|
|00002f10| 6c 20 66 69 6c 65 0d 7d | 20 53 70 6f 6f 6c 50 52 |l file.}| SpoolPR|
|00002f20| 45 43 31 32 36 52 65 63 | 6f 72 64 2c 20 2a 53 70 |EC126Rec|ord, *Sp|
|00002f30| 6f 6f 6c 50 52 45 43 31 | 32 36 50 74 72 2c 20 2a |oolPREC1|26Ptr, *|
|00002f40| 2a 53 70 6f 6f 6c 50 52 | 45 43 31 32 36 48 61 6e |*SpoolPR|EC126Han|
|00002f50| 64 6c 65 3b 0d 0d 2f 2f | 20 50 49 4e 58 20 2d 38 |dle;..//| PINX -8|
|00002f60| 32 30 30 20 28 70 61 67 | 65 20 69 6e 64 65 78 20 |200 (pag|e index |
|00002f70| 72 65 73 6f 75 72 63 65 | 29 0d 74 79 70 65 64 65 |resource|).typede|
|00002f80| 66 20 73 74 72 75 63 74 | 0d 7b 0d 09 73 68 6f 72 |f struct|.{..shor|
|00002f90| 74 09 63 6f 75 6e 74 3b | 09 09 09 2f 2f 20 6e 75 |t.count;|...// nu|
|00002fa0| 6d 62 65 72 20 6f 66 20 | 65 6c 65 6d 65 6e 74 73 |mber of |elements|
|00002fb0| 20 69 6e 20 74 68 65 20 | 70 61 67 65 4f 66 66 73 | in the |pageOffs|
|00002fc0| 65 74 20 61 72 72 61 79 | 0d 09 6c 6f 6e 67 09 70 |et array|..long.p|
|00002fd0| 61 67 65 4f 66 66 73 65 | 74 5b 31 5d 3b 09 2f 2f |ageOffse|t[1];.//|
|00002fe0| 20 74 68 65 20 6f 66 66 | 73 65 74 20 66 72 6f 6d | the off|set from|
|00002ff0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|00003000| 66 20 74 68 65 20 66 69 | 6c 65 20 74 6f 20 74 68 |f the fi|le to th|
|00003010| 65 20 70 61 67 65 20 72 | 65 63 6f 72 64 0d 09 09 |e page r|ecord...|
|00003020| 09 09 09 09 09 2f 2f 20 | 65 2e 67 2e 20 69 74 20 |.....// |e.g. it |
|00003030| 77 6f 75 6c 64 20 62 65 | 20 73 69 7a 65 6f 66 28 |would be| sizeof(|
|00003040| 53 70 6f 6f 6c 46 69 6c | 65 48 65 61 64 65 72 29 |SpoolFil|eHeader)|
|00003050| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 70 | for the| first p|
|00003060| 61 67 65 2e 0d 7d 20 53 | 70 6f 6f 6c 50 61 67 65 |age..} S|poolPage|
|00003070| 49 6e 64 65 78 2c 20 20 | 2a 53 70 6f 6f 6c 50 61 |Index, |*SpoolPa|
|00003080| 67 65 49 6e 64 65 78 50 | 74 72 2c 20 2a 2a 53 70 |geIndexP|tr, **Sp|
|00003090| 6f 6f 6c 50 61 67 65 49 | 6e 64 65 78 48 61 6e 64 |oolPageI|ndexHand|
|000030a0| 6c 65 3b 0d 0d 2f 2f 20 | 6a 6f 62 69 20 31 20 28 |le;..// |jobi 1 (|
|000030b0| 44 54 50 20 70 72 69 6e | 74 20 6a 6f 62 20 69 6e |DTP prin|t job in|
|000030c0| 66 6f 72 6d 61 74 69 6f | 6e 20 72 65 73 6f 75 72 |formatio|n resour|
|000030d0| 63 65 29 0d 2f 2f 20 70 | 72 69 6e 74 20 70 72 69 |ce).// p|rint pri|
|000030e0| 6f 72 69 74 69 65 73 0d | 23 64 65 66 69 6e 65 09 |orities.|#define.|
|000030f0| 6b 44 54 50 50 72 69 6e | 74 4a 6f 62 55 72 67 65 |kDTPPrin|tJobUrge|
|00003100| 6e 74 09 09 30 78 30 30 | 30 30 30 30 30 31 0d 23 |nt..0x00|000001.#|
|00003110| 64 65 66 69 6e 65 09 6b | 44 54 50 50 72 69 6e 74 |define.k|DTPPrint|
|00003120| 4a 6f 62 41 74 54 69 6d | 65 09 09 30 78 30 30 30 |JobAtTim|e..0x000|
|00003130| 30 30 30 30 32 0d 23 64 | 65 66 69 6e 65 09 6b 44 |00002.#d|efine.kD|
|00003140| 54 50 50 72 69 6e 74 4a | 6f 62 4e 6f 72 6d 61 6c |TPPrintJ|obNormal|
|00003150| 09 09 30 78 30 30 30 30 | 30 30 30 33 0d 23 64 65 |..0x0000|0003.#de|
|00003160| 66 69 6e 65 20 6b 44 54 | 50 50 72 69 6e 74 4a 6f |fine kDT|PPrintJo|
|00003170| 62 48 6f 6c 64 69 6e 67 | 20 20 20 09 30 78 30 30 |bHolding| .0x00|
|00003180| 30 30 31 30 30 33 0d 0d | 74 79 70 65 64 65 66 20 |001003..|typedef |
|00003190| 73 74 72 75 63 74 0d 7b | 0d 09 73 68 6f 72 74 09 |struct.{|..short.|
|000031a0| 09 09 66 69 72 73 74 50 | 61 67 65 54 6f 50 72 69 |..firstP|ageToPri|
|000031b0| 6e 74 3b 09 2f 2f 20 66 | 69 72 73 74 20 70 61 67 |nt;.// f|irst pag|
|000031c0| 65 20 69 6e 20 74 68 65 | 20 73 70 6f 6f 6c 20 66 |e in the| spool f|
|000031d0| 69 6c 65 20 74 6f 20 70 | 72 69 6e 74 0d 09 73 68 |ile to p|rint..sh|
|000031e0| 6f 72 74 09 09 09 70 72 | 69 6f 72 69 74 79 3b 09 |ort...pr|iority;.|
|000031f0| 09 09 2f 2f 20 70 72 69 | 6e 74 20 70 72 69 6f 72 |..// pri|nt prior|
|00003200| 69 74 79 20 28 65 67 20 | 6b 44 54 50 50 72 69 6e |ity (eg |kDTPPrin|
|00003210| 74 4a 6f 62 4e 6f 72 6d | 61 6c 29 0d 09 73 68 6f |tJobNorm|al)..sho|
|00003220| 72 74 09 09 09 6e 75 6d | 43 6f 70 69 65 73 3b 09 |rt...num|Copies;.|
|00003230| 09 09 2f 2f 20 74 6f 74 | 61 6c 20 6e 75 6d 62 65 |..// tot|al numbe|
|00003240| 72 20 6f 66 20 63 6f 70 | 69 65 73 0d 09 73 68 6f |r of cop|ies..sho|
|00003250| 72 74 09 09 09 6e 75 6d | 50 61 67 65 73 3b 09 09 |rt...num|Pages;..|
|00003260| 09 2f 2f 20 74 6f 74 61 | 6c 20 6e 75 6d 62 65 72 |.// tota|l number|
|00003270| 20 6f 66 20 70 61 67 65 | 73 20 69 6e 20 74 68 65 | of page|s in the|
|00003280| 20 73 70 6f 6f 6c 20 66 | 69 6c 65 0d 09 75 6e 73 | spool f|ile..uns|
|00003290| 69 67 6e 65 64 20 6c 6f | 6e 67 09 74 69 6d 65 54 |igned lo|ng.timeT|
|000032a0| 6f 50 72 69 6e 74 3b 09 | 09 2f 2f 20 74 69 6d 65 |oPrint;.|.// time|
|000032b0| 20 74 6f 20 70 72 69 6e | 74 20 28 69 6e 20 73 65 | to prin|t (in se|
|000032c0| 63 6f 6e 64 73 29 20 77 | 68 65 6e 20 70 72 69 6f |conds) w|hen prio|
|000032d0| 72 69 74 79 20 69 73 20 | 6b 44 54 50 50 72 69 6e |rity is |kDTPPrin|
|000032e0| 74 4a 6f 62 41 74 54 69 | 6d 65 0d 09 53 74 72 33 |tJobAtTi|me..Str3|
|000032f0| 31 09 09 09 64 6f 63 75 | 6d 65 6e 74 4e 61 6d 65 |1...docu|mentName|
|00003300| 3b 09 09 2f 2f 20 6e 61 | 6d 65 20 6f 66 20 74 68 |;..// na|me of th|
|00003310| 65 20 64 6f 63 75 6d 65 | 6e 74 0d 09 53 74 72 33 |e docume|nt..Str3|
|00003320| 31 09 09 09 61 70 70 6c | 69 63 61 74 69 6f 6e 4e |1...appl|icationN|
|00003330| 61 6d 65 3b 09 2f 2f 20 | 6e 61 6d 65 20 6f 66 20 |ame;.// |name of |
|00003340| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00003350| 74 68 61 74 27 73 20 75 | 73 65 64 20 74 6f 20 63 |that's u|sed to c|
|00003360| 72 65 61 74 65 20 74 68 | 69 73 20 73 70 6f 6f 6c |reate th|is spool|
|00003370| 20 66 69 6c 65 0d 09 53 | 74 72 33 32 09 09 09 70 | file..S|tr32...p|
|00003380| 72 69 6e 74 65 72 4e 61 | 6d 65 3b 09 09 2f 2f 20 |rinterNa|me;..// |
|00003390| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 74 61 72 67 |name of |the targ|
|000033a0| 65 74 20 70 72 69 6e 74 | 65 72 20 28 73 68 6f 75 |et print|er (shou|
|000033b0| 6c 64 20 62 65 20 74 68 | 65 20 73 61 6d 65 20 61 |ld be th|e same a|
|000033c0| 73 20 77 68 61 74 27 73 | 20 69 6e 20 50 52 45 43 |s what's| in PREC|
|000033d0| 20 31 32 34 29 0d 7d 20 | 44 54 50 50 72 69 6e 74 | 124).} |DTPPrint|
|000033e0| 4a 6f 62 49 6e 66 6f 2c | 20 2a 44 54 50 50 72 69 |JobInfo,| *DTPPri|
|000033f0| 6e 74 4a 6f 62 49 6e 66 | 6f 50 74 72 2c 20 2a 2a |ntJobInf|oPtr, **|
|00003400| 44 54 50 50 72 69 6e 74 | 4a 6f 62 49 6e 66 6f 48 |DTPPrint|JobInfoH|
|00003410| 61 6e 64 6c 65 3b 0d 0d | 0d 23 69 66 20 47 45 4e |andle;..|.#if GEN|
|00003420| 45 52 41 54 49 4e 47 50 | 4f 57 45 52 50 43 0d 23 |ERATINGP|OWERPC.#|
|00003430| 70 72 61 67 6d 61 20 6f | 70 74 69 6f 6e 73 20 61 |pragma o|ptions a|
|00003440| 6c 69 67 6e 3d 72 65 73 | 65 74 0d 23 65 6e 64 69 |lign=res|et.#endi|
|00003450| 66 0d 0d 23 65 6e 64 69 | 66 00 00 00 00 00 00 00 |f..#endi|f.......|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003480| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00003490| 00 05 39 6e 16 4f 70 65 | 6e 20 54 72 61 6e 73 70 |..9n.Ope|n Transp|
|000034a0| 6f 72 74 20 48 65 61 64 | 65 72 73 65 01 00 00 00 |ort Head|erse....|
|000034b0| 11 44 65 73 6b 74 6f 70 | 50 72 69 6e 74 69 6e 67 |.Desktop|Printing|
|000034c0| 2e 68 61 74 65 20 38 2f | 33 6e 63 65 73 32 2e 78 |.hate 8/|3nces2.x|
|000034d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 05 00 b5 |..TEXTCW|IE......|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 b0 f4 9d 36 00 00 | 33 d9 00 00 01 c8 69 62 |.....6..|3.....ib|
|00003500| 72 61 72 69 65 73 01 00 | 00 00 00 19 00 05 39 79 |raries..|......9y|
|00003510| b0 9b 63 49 b0 f2 1c 52 | 00 00 00 00 00 00 00 00 |..cI...R|........|
|00003520| 00 00 00 00 01 00 00 36 | 00 81 00 00 00 00 00 00 |.......6|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 0f 00 00 05 |........|........|
|00003550| 39 6e 09 55 45 48 65 61 | 64 65 72 73 01 00 00 00 |9n.UEHea|ders....|
|00003560| 00 09 00 05 54 e8 b0 ab | 2f 9e b0 eb 90 ce 00 00 |....T...|/.......|
|00003570| 00 00 01 29 01 a0 02 3e | 03 71 03 00 00 00 01 21 |...)...>|.q.....!|
|00003580| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00003590| 6e 61 63 6f 00 00 00 00 | 01 dd 1a 70 00 00 00 00 |naco....|...p....|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|000035b0| 00 04 00 5a 00 3f 02 44 | 03 fd 00 5a 00 3f 02 44 |...Z.?.D|...Z.?.D|
|000035c0| 03 fd b1 da 27 e5 00 00 | 09 f7 00 00 09 f7 00 00 |....'...|........|
|000035d0| 06 4b 01 00 00 00 00 1e | 00 5a 00 3f 02 44 03 fd |.K......|.Z.?.D..|
|000035e0| 00 5a 00 3f 02 44 03 fd | 00 00 06 4b 00 00 00 00 |.Z.?.D..|...K....|
|000035f0| 00 00 00 00 00 00 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00003600| 00 76 00 00 00 52 01 d3 | ed 88 29 80 00 00 00 1c |.v...R..|..).....|
|00003610| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|00003620| 00 00 00 2a 03 ed ff ff | 00 00 00 08 00 00 00 00 |...*....|........|
|00003630| 03 f0 ff ff 00 00 00 54 | 01 da 19 f4 03 f0 ff ff |.......T|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+